Goldman Sachs interview question

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

Interview Answer

Anonymous

14 Nov 2024

I was able to code it using Rolling hash