You are viewing a single comment's thread. Return to all comments →
Kotlin solution:
val tallestHeight = height.maxOrNull() ?: 0 val result = tallestHeight - k
if (result < 0){ return 0 } else { return result }
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 →
Kotlin solution:
val tallestHeight = height.maxOrNull() ?: 0 val result = tallestHeight - k