← ALL NOTES
Math

2081. Sum of k-Mirror Numbers

A number is k-mirror if it's a palindrome in both base 10 and base k (no leading zeros). Given k and n, return the sum of the n smallest positive k-mirror numbers. The trick: generate decimal…

Loading…