finding cycle in an array-based link list
count 1 bits
find longest common prefix and suffix of a string
update