Search
⌘K

Leetcode 2084. Drop Type 1 Orders for Customers With Type 0 Orders

Given a list of orders labeled by customer and type (0 or 1), remove all type-1 orders for any customer who has at least one type-0 order and return the remaining orders in their original order; the core challenge is grouping by customer and efficiently filtering based on presence of type-0 orders.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.