All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g0501_0600.s0504_base_7.readme.md Maven / Gradle / Ivy

There is a newer version: 1.24
Show newest version
504\. Base 7

Easy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy