Find the longest repeating substring of a given string. For example, given "banana", the longest repeating substring is "ana". OOD, desgin Black Jack.
Anonymous
I just found a most intuitive answer in the interview, find all the substring and put it into a hash table.
Check out your Company Bowl for anonymous work chats.