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.
This question have some issue in its description it got me confused for a while.
First statement:
The first 3 students arrived on. The last 2 were late. The threshold is 3 students, so class will go on. Return YES.
Leter statement:
Complete the angryProfessor function in the editor below. It must return YES if class is cancelled, or NO otherwise.
Follow the second rule if you want to successfully complete the question.
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 →
This question have some issue in its description it got me confused for a while.
First statement:
The first 3 students arrived on. The last 2 were late. The threshold is 3 students, so class will go on. Return YES.
Leter statement:
Complete the angryProfessor function in the editor below. It must return YES if class is cancelled, or NO otherwise.
Follow the second rule if you want to successfully complete the question.