Google interview question

2 coding questions were asked.

Interview Answer

Anonymous

2 Sept 2024

I gave the optimal approach but he was not satisfied with the 1st question solution