Skip to content

Conversation

@antonrud
Copy link

@antonrud antonrud commented Mar 25, 2019

I believe if we get an array full of all possible integers the return of 'min' (which is 1) is not quite correct.
I decided to return Integer.MAX_VALUE in this case (another option would be 0).
And the 'min' variable is not mutated during runtime, so why declare it anyway.

I believe if we get an array full of all possible integers the return of 'min' (which is 1) is not quite correct.
I decided to return Integer.MAX_VALUE in this case.
And the 'min' variable is not mutated during runtime, so why declare it anyway.
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