@@ -0,0 +1,333 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/sum-of-digits-in-base-k/%0A */%0Apublic class Problem1837 %7B%0A    public int sumBase(int n, int k) %7B%0A        String s = Integer.toString(n, k);%0A        int answer = 0;%0A        for (char c : s.toCharArray()) %7B%0A            answer += (c - '0');%0A        %7D%0A        return answer;%0A    %7D%0A%7D%0A

Solve problem 1837