1837. Sum of Digits in Base K
Description
**Input:** n = 34, k = 6
**Output:** 9
**Explanation:** 34 (base 10) expressed in base 6 is 54. 5 + 4 = 9.**Input:** n = 10, k = 10
**Output:** 1
**Explanation:** n is already in base 10. 1 + 0 = 1.ac
Previous1836. Remove Duplicates From an Unsorted Linked ListNext1838. Frequency of the Most Frequent Element
Last updated