Available question text
Given four digits, arrange each exactly once to form a valid 24-hour time "HH:MM" (HH between 00–23, MM between 00–59) and return the latest possible time or an empty string if none exist. The problem reduces to checking all digit permutations for validity and selecting the maximum chronological time.
Related questions
Continue with questions that share topics or the same question type.
- Design an algorithm to get the load on the server in past 5 mins given the time stamps of requests.
Coding
- Determine if a Cell Is Reachable at a Given Time
Coding
- Form Largest Integer With Digits That Add up to Target
Coding
- Given an array nums and a sliding window of size k moving from the very left to the very right, return the maximum value in the window for each position. Solve in O(n) time using a deque.
Coding
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 949. Largest Time for Given Digits
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source