Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1736. Latest Time by Replacing Hidden Digits
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).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.