Tap here to switch tabs
Problem
Submissions

Problem: Base 7

Base 7 asks you to convert an integer into its equivalent string representation in base seven, including the correct notation for negative values.

Statement

Given an integer num, return a string representing its base 77 equivalent.

Constraints:

  • −107≤-10^7 \leq num ≤107\leq 10^7

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Base 7

Base 7 asks you to convert an integer into its equivalent string representation in base seven, including the correct notation for negative values.

Statement

Given an integer num, return a string representing its base 77 equivalent.

Constraints:

  • −107≤-10^7 \leq num ≤107\leq 10^7