504 Base 7
Given an integer, return its base 7 string representation.
Example 1:
|
|
Example 2:
|
|
Note: The input will be in range of [-1e7, 1e7].
思路
简单的7进制转换,采用短除法即可实现。
|
|
Given an integer, return its base 7 string representation.
Example 1:
|
|
Example 2:
|
|
Note: The input will be in range of [-1e7, 1e7].
简单的7进制转换,采用短除法即可实现。
|
|