g0501_0600.s0504_base_7.Solution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
package g0501_0600.s0504_base_7;
// #Easy #Math
public class Solution {
public String convertToBase7(int num) {
return Integer.toString(num, 7);
}
}