Ad
  • Custom User Avatar

    This does not sound right. When I try to run your solution, I get this message:

    < Incorrect Result >
    latest_clock(0, 2, 2, 2)
     
    Submitted: "22:00"
    Expected:  "22:20"
    
  • Custom User Avatar

    Your code has a small bug.

    The comment in the initial setup says: // The result should be [...] correctly null-terminated. and your code is not doing this.