carloscn / carloscn/structstudy
leetcode504:七进制数(base-7)
Open
Level-easy
一般问题
位运算
字符串
- Dominant language
- C
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
给定一个整数 num,将其转化为 7 进制,并以字符串形式输出。
示例 1:
输入: num = 100
输出: "202"
示例 2:
输入: num = -7
输出: "-10"
提示:
-107 <= num <= 107
来源:力扣(LeetCode)
链接:https://leetcode.cn/problems/base-7
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.