Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.23 KB

README.md

File metadata and controls

32 lines (26 loc) · 1.23 KB

< Previous                  Next >

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

Related Topics

[Math]