You are viewing a single comment's thread. Return to all comments →
scala def hurdleRace(k: Int, height: Array[Int]): Int = { height.foldLeft(0)({case (acc, n) => max(n-k, acc)}) }
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 →