Skip to content

Conversation

@woodgas
Copy link

@woodgas woodgas commented Aug 1, 2022

Hello!
In the test case like rangeOdd(15, 14) we will have 0 value of the len identifier. It is better to use (len <= 0) instead of (len < 0 ) in the if statement. It will prevent initiation of new array in 6th string of the code. Thanks.

Hello! 
In the test case like rangeOdd(15, 14) we will have 0 value of the len identifier. It is better to use (len <= 0) instead of (len < 0 ) in the if statement. It will prevent initiation of new array in 6th string of the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant