← Amazon questions

Maximum groups of 2 or 3 elements with sum multiple of 3

Filed under Amazon

Given an unsorted array of positive integers, find the maximum number of groups of 2 or 3 elements that can be formed such that the sum of elements in each group is a multiple of 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.