Google Interview Question

String decomposition: given a string, as you go through the string, if you encounter a substring that has been seen previously, you output that substring plus the next character in the original string.

Interview Answers

Anonymous

Feb 5, 2017

Could you elaborate more on this one please? I don't get it and I can't find thise question on the internet.

1

Anonymous

Feb 2, 2017

I used an unordered_set