Problem 3114 · Easy

Latest Time You Can Obtain After Replacing Characters

Fill each '?' in an HH:MM 12-hour time greedily to get the latest valid time.

Open the interactive visualisation