Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History
executable file
·
26 lines (17 loc) · 309 Bytes

File metadata and controls

executable file
·
26 lines (17 loc) · 309 Bytes

题目

Given an integer, return its base 7 string representation.

Example 1:

Input: 100
Output: "202"

Example 2:

Input: -7
Output: "-10"

Note: The input will be in range of [-1e7, 1e7].

解题思路

见程序注释