Algorithmic Solutions for Programming Contest Problems
Given an integer, determine if it is a palindrome.
The straightforward apprroach is to treat the input as a string and check if it reads the same forwards and backwards, which can be done in O(n) time where n is the length of the string.
A more efficient approach uses polynomial hashing with O(n) time complexity. We'll implement both forward an ...
Posted on Sun, 02 Aug 2026 16:19:16 +0000 by briglia23