leetcode/0504_base-7/README.md

17 lines
240 B
Markdown
Raw Normal View History

2022-04-11 07:29:55 +00:00
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`