Given an integer, return its base 7 string representation.
Example 1:
1 | Input: 100 |
Example 2:
1 | Input: -7 |
Note: The input will be in range of [-1e7, 1e7].
其实理解了进制转换之后,这题确实不难。
1 | public class Base7 { |
Given an integer, return its base 7 string representation.
Example 1:
1 | Input: 100 |
Example 2:
1 | Input: -7 |
Note: The input will be in range of [-1e7, 1e7].
其实理解了进制转换之后,这题确实不难。
1 | public class Base7 { |