109
rated 0 times
[
110]
[
1]
/ answers: 1 / hits: 15641
/ 5 Years ago, thu, february 14, 2019, 12:00:00
I was asked this question in an interview:
An integer is special if it can be expressed as a sum that's a palindrome (the same backwards as forwards). For example, 22 and 121 are both special, because 22 equals
11+11
and 121 equals29+92
.
Given an array of integers, count how many of its elements are special.
but I couldn't think of any solution. How can this be done?
More From » algorithm