LeetCode - 1017. Convert to Base -2

Given a number N, return a string consisting of "0"s and "1"s that represents its value in base -2 (negative two). The returned string must have no leading zeroes, unless the string is 「0」. Example 1:
相關文章
相關標籤/搜索