Given an integer, return its base 7 string representation.
Example
No.1
Input: 100
Output: “202”
No.2
Input: -7
Output: “-10”
Note
The input will be in range of [-1e7, 1e7].
Code
1 |
public String (int num) { |
Given an integer, return its base 7 string representation.
Input: 100
Output: “202”
Input: -7
Output: “-10”
The input will be in range of [-1e7, 1e7].
1 |
public String (int num) { |
近期评论