Available question text
Given purchase/transaction records, find customers who have bought both product A and product B at least once but never purchased product C; this is a set-membership/filtering task typically solved by grouping customers' purchases and selecting those whose product sets include A and B while excluding C.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1398. Customers Who Bought Products A and B but Not C
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source