Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 949. Largest Time for Given Digits
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.
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.