0949. Largest Time for Given Digits
Description
**Input:** arr = [1,2,3,4]
**Output:** "23:41"
**Explanation:** The valid 24-hour times are "12:34", "12:43", "13:24", "13:42", "14:23", "14:32", "21:34", "21:43", "23:14", and "23:41". Of these times, "23:41" is the latest.**Input:** arr = [5,5,5,5]
**Output:** ""
**Explanation:** There are no valid 24-hour times as "55:55" is not valid.**Input:** arr = [0,0,0,0]
**Output:** "00:00"**Input:** arr = [0,0,1,0]
**Output:** "10:00"ac
Last updated