Amazon interview question

LC Easy question on string manipulation. To find certain patterns in string.

Interview Answer

Anonymous

Sep 22, 2023

Showed the interviewer both approaches O(N^2) and O(N) and explained my thought process.