← Amazon questions

Divide array into two halves with equal cherries

Filed under Amazon

Given a 2D grid containing '#' (cherries) and '.' (empty cells), determine if it is possible to divide the grid into two non-empty halves with an equal number of cherries using a single straight…

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.