Base 7 Problem

Base 7 Problem — ExecCode Easy DSA Practice

Solve the Base 7 problem on ExecCode. Free online easy DSA practice in Math. Write and run code in Java, C++, Python — no signup required to run.

Description 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 -10^7 <= num <= 10^7

Practice Base 7 free on ExecCode. Browse more ExecCode DSA problems.