Available question text
Given a time string "hh:mm" with some digits replaced by '?', replace each '?' to form the latest possible valid 24-hour time (00:00–23:59). The challenge is choosing the largest digit for each position under positional constraints (hour tens ≤2, minute tens ≤5, and if hour tens is 2 then hour units ≤3).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1736. Latest Time by Replacing Hidden Digits
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source