Write a Clock holding hours and minutes. tick adds one minute; at 60 minutes the hour goes up and the minutes go back to 0, and after 23 the hour wraps to 0. show returns the time as "HH:MM" with two digits each.
class Clock { Clock(int h, int m); void tick(); String show(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.