
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-java17 Show documentation
Show all versions of leetcode-in-java17 Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
package g0501_0600.s0504_base_7;
// #Easy #Math #2022_03_19_Time_1_ms_(94.93%)_Space_41.2_MB_(58.94%)
public class Solution {
public String convertToBase7(int num) {
return Integer.toString(num, 7);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy