Amazon Interview Question

I got two questions. String manipulation (longest common prefix) and an array problem(I can't remember exactly which one). But I'd say the first one was medium and the second one was easy.

Interview Answer

Anonymous

Dec 25, 2021

Even though my DS&Algos weren't good I was able to make brute force solution for the second one. For the first one I couldn't pass all test cases.