Google interview question

I was asked two coding question in the OA.

Interview Answer

Anonymous

8 Aug 2024

I used DP and BS to answer.