Problems
Scratchpad
Run
Submit
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
:
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
Toggle theme (Current: Custom)
Scratchpad
Run
Submit
Description
Hints
Solutions
504. Base 7
Easy
10 Points
Math
String
Given an integer num, return a string of its base 7 representation.
Examples
Example 1
Input: num = 100 Output: "202"
Example 2
Input: num = -7 Output: "-10"
Constraints
-107 <= num <= 107
JAVASCRIPT
Code
Tests
Result
Description
Hints
Solutions
504. Base 7
Easy
10 Points
Math
String
Given an integer num, return a string of its base 7 representation.
Examples
Example 1
Input: num = 100 Output: "202"
Example 2
Input: num = -7 Output: "-10"
Constraints
-107 <= num <= 107
JAVASCRIPT
Code
Tests
Result
Base 7 - Practice Coding | SlaveCode