leetcode
949 Largest Time for Given Digits
link: https://leetcode.com/problems/largest-time-for-given-digits/ Thought Its easy to think use DFS to solve it: it has limit data(4 digits), and DFS will enumerates all possible combinations Code class Solution: def largestTimeFromDigits(self, A): """ :type A: List[int] :rtype: str "