find the closest palindrome: a math problem. The trick is to zero out the right part of the original number. Add 1 to the middle number or subtract 1 from the zero-out number. palindromic substrings: count the length of palindromic substrings stair shape stack series largest rectangle in ...