Easy
Quiz
#504 Base 7
APPROACH
Convert the integer num to base 7 and return the result as a string. The result should handle negative numbers correctly.
Example 1:
Input: num = 100
Output: "202"
Example 2:
Input: num = -7
Output: "-10"
1 of 4
1:00
What is the optimal approach for this problem?