Goldman Sachs interview question

First online coding round - A hard leetcode problem - finding longest prefix which is also suffix

Interview Answer

Anonymous

Nov 14, 2024

I was able to code it using Rolling hash