Maximum Time

Asked at Google · Coding & Leetcode-style Questions · Difficulty: Easy

You are given a string that represents time in the format `hh:mm`. Some of the digits are blank (represented by `?`). Fill in `?` such that the time represented by this string is the maximum possible. Maximum time: `23:59`, minimum time: `00:00`. You can assume that input string is always valid.

Loading the problem…