You are viewing a single comment's thread. Return to all comments →
You're right, that's the best initial value.
In this case I'd say using Integer.MIN_VALUE would be a better choice. This will make it easier to convert your algorithm to one that can be used on any size array and with different integer bounds