Given an integer num, return a string representing its base 777 equivalent.
num
Constraints:
−107≤-10^7 \leq−107≤ num ≤107\leq 10^7≤107
Now, let’s take a moment to make sure you’ve correctly understood the problem. The quiz below helps you check if you’re solving the correct problem:
Base 7
What is the output when num = −49-49−49?
"-100"
"-70"
"100"
"-49"
We have a game for you to play. Rearrange the logical building blocks to develop a clearer understanding of how to solve this problem.
Implement your solution in the following coding playground.