• + 4 comments

    You're right. His solution is actualy more lazy than clever (assuming he uses an already implemented sort functin).

    You don't need to store the students time in an array, though. You just count the ones entering in time as you read the input.