LeetCode Daily Challenge-2081. Sum of k-Mirror Numbers
Problem description
Algorithm walkthrough
Use helper function 1 to change a number into base k
Use helper function 2 to check if a number is a palindrome
In the main function, find n numbers that are both palindromes in base 10 and base k
Naive app...
huanganni.hashnode.dev3 min read