Leetcode 1837. Sum of Digits in Base K
Convert n from base 10 to base k and return the sum of its digits (each digit interpreted as a base-10 integer). This tests basic number-base conversion and digit extraction.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.