You are viewing a single comment's thread. Return to all comments →
My swift solution:
func hurdleRace(k: Int, height: [Int]) -> Int {
if let max = height.max() { return max - k > 0 ? max - k : 0 } return 0
}
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 →
My swift solution:
func hurdleRace(k: Int, height: [Int]) -> Int {
}