← Amazon questions

Find perimeter of a square plot enclosing N apples on a grid

Filed under Amazon

Given a coordinate plane where each point (x, y) has x+y apples, a person at (0,0) wants to buy a square plot containing N apples inside including the periphery. Return the perimeter of that square…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.