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.
There is a confusing typo in the instructions. The 2 lines below conflict:
"The first 3 students arrived on. The last 2 were late. The threshold is 3 students, so class will go on. Return YES."
"It must return YES if class is cancelled, or NO otherwise."
The first instruction makes it seem that you should return YES if the class is held, the second says the opposite. From the sample case you can tell that the 2nd version is correct, but it's confusing.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
There is a confusing typo in the instructions. The 2 lines below conflict:
"The first 3 students arrived on. The last 2 were late. The threshold is 3 students, so class will go on. Return YES."
"It must return YES if class is cancelled, or NO otherwise."
The first instruction makes it seem that you should return YES if the class is held, the second says the opposite. From the sample case you can tell that the 2nd version is correct, but it's confusing.