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.
Angry Professor
Angry Professor
Sort by
recency
|
1938 Discussions
|
Please Login in order to post a comment
"so class will go on. Return YES" and "It must return YES if class is cancelled, or NO otherwise " is quite opposite isn't it.
Hi there! Here's my Java solution for the challenge.
https://github.com/eduardocintra/hacker-rank-solutions/blob/master/src/br/com/eduardocintra/easy/angryprofessor/AngryProfessor.java
JavaScript
Javascript solution: Get the length of filtered array with only number less than 1
Not sure if it was just me, but from the problem description I understood to return YES in case more students are on time than the threshold:
Actually we should return YES in case of the class is cancelled and NO in case the class will go on.
JavaScript solution: