Watch 10 video solutions for Base 7, a easy level problem involving Math. This walkthrough by CodeHelp - by Babbar has 921,595 views views. Want to try solving it yourself? Practice on FleetCode or read the detailed text solution.
Given an integer num, return a string of its base 7 representation.
Example 1:
Input: num = 100 Output: "202"
Example 2:
Input: num = -7 Output: "-10"
Constraints:
-107 <= num <= 107