Question bank › Arrays
Dsa Arrays Easy

Grouped Sum

You are given an array of integers. Group them by their parity (even or odd) and return the sum of each group. Example: Input: 6 1 2 3 4 5 6 Output: 9 12

Key concepts

arraysgroupingsumming

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.