목록Algorithm/leetcode (2)
nayonngme
https://leetcode.com/problems/binary-watch/description/?envType=problem-list-v2&envId=backtracking A binary watch has 4 LEDs on the top to represent the hours (0-11), and 6 LEDs on the bottom to represent the minutes (0-59). Each LED represents a zero or one, with the least significant bit on the right.For example, the below binary watch reads "4:51".Given an integer turnedOn which represents th..
https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.A mapping of digits to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters. Example 1:Input: digits = "23"Outpu..