Available question text
Given purchase and product tables, compute all unordered category pairs (category1 < category2) and count the number of unique users who bought from both categories, reporting only pairs with at least 3 distinct users. Be sure to deduplicate multiple purchases per user per category before forming category pairs and order results by customer_count desc, then category1 and category2 asc.
Related questions
Continue with questions that share topics or the same question type.
- Find Product Recommendation Pairs
Coding
- Find K Pairs with Smallest Sums
Coding · Array · Heap (Priority Queue)
- Find Maximum Number of String Pairs
Coding
- Find Pairs with the Smallest Difference
Coding
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 3554. Find Category Recommendation Pairs
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source