Goldman Sachs interview question

DSA questions and pseudo code

Interview Answer

Anonymous

Aug 24, 2024

I started by giving brute force approach , then keep on optimising it .