We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The Hurdle Race
The Hurdle Race
Sort by
recency
|
1393 Discussions
|
Please Login in order to post a comment
Hi there! Here's my Java solution for the challenge.
https://github.com/eduardocintra/hacker-rank-solutions/blob/master/src/br/com/eduardocintra/easy/thehurdlerace/TheHurdleRace.java
JavaScript
Javascript solution: sort array in DESC order then check if k Higher or equal to first element of array to return 0 or return difference between the both
or u can use other sort methods itself (bubble, merge, etc)