A 'good number' consists strictly of digits '4' and '5' and is an even-length palindrome. The good numbers sorted in ascending order are: 44, 55, 4444, 4554, 5445, 5555, ... Given an integer n, find…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.