โ† Amazon questions

Max groups divisible by 3

Filed under Amazon

Given an array of integers, find the maximum number of groups of size 2 or 3 such that the sum of elements in each group is divisible by 3.

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.