You are viewing a single comment's thread. Return to all 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.
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 →
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.