You are viewing a single comment's thread. Return to all comments →
int max = Collections.max(height); return max - k <= 0 ? 0 : max - k;
or u can use other sort methods itself (bubble, merge, etc)
Seems like cookies are disabled on this browser, please enable them to open this website
The Hurdle Race
You are viewing a single comment's thread. Return to all comments →
or u can use other sort methods itself (bubble, merge, etc)