Premium
Group By
Challenge summary
Group array items by a derived key without changing the input collection or losing item order within each group.
What you'll practice
- Derive a grouping key for every input item.
- Preserve source order within each generated group.
- Handle empty input and repeated keys with predictable output.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.
Free related practice
Public interview reports: LeetCode Discuss (October 2024) · Stripe frontend interview questions
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.