1736. Latest Time by Replacing Hidden Digits
https://leetcode.com/problems/latest-time-by-replacing-hidden-digits
Description
You are given a string time
in the form of hh:mm
, where some of the digits in the string are hidden (represented by ?
).
The valid times are those inclusively between 00:00
and 23:59
.
Return the latest valid time you can get from time
by replacing the hidden digits.
Example 1:
Example 2:
Example 3:
Constraints:
time
is in the formathh:mm
.It is guaranteed that you can produce a valid time from the given string.
ac
Previous1735. Count Ways to Make Array With ProductNext1737. Change Minimum Characters to Satisfy One of Three Conditions
Last updated