Amazon's coding rounds test how fast you recognize patterns and write clean code under time pressure. I'll walk you through array and string problems that come up often in Amazon interviews.
Four of them are from [[u:/roadmaps/pattern-22|Pattern ]], where you'll find full explanations. The remaining are worked out step by step right here. For each one, read the problem, think about it, then check the solution.