Solution: Sum of k-Mirror Numbers
Understand how to generate base-10 palindromes and check their representation in base k to find the sum of the smallest k-mirror numbers. This lesson teaches you efficient palindrome generation, base conversion, and filtering techniques to solve this math-based coding challenge.
We'll cover the following...
We'll cover the following...
Statement
A k-mirror number is a positive integer without leading zeros that is a palindrome in both base-k.
Given an integer k representing the base and an integer n, return the sum of the n smallest k-mirror numbers.
Note: A palindrome is a number that reads the same both forward and backward.
Constraints:
kn...