Search
⌘K
Get Premium
Leetcode 1418. Display Table of Food Orders in a Restaurant
Group orders by table and food item to count how many of each dish each table ordered, while collecting all distinct food names sorted alphabetically. Output a header ["Table", ...foods...] and rows for each table (sorted numerically) containing the counts for each food.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.