base-7


Submit solution

Points: 1
Time limit: 30.0s
Memory limit: 250M

Problem type
Allowed languages
Python

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:

-10⁷ <= num <= 10⁷

Comments

There are no comments at the moment.