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.
Problem description
Description You are given an integer num, return a string of its base 7 representation.
Examples
Input {"num": 100}; Output 202. Input {"num": -7}; Output -10
Constraints
-10^7 <= num <= 10^7
Practice Base 7 free on ExecCode. Browse DSA problems, topic map, and placement guides.