Hackerrank – Angry Professor

Hackerrank – Problem Statement

A description of the problem can be found on Hackerrank.

Solution

Count all students which come before starting a class (their arrival time is lower or equal to 0). Check if the count of the students is lower than cancellation threshold.

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby

Leave a Reply

Your email address will not be published. Required fields are marked *