Search
⌘K

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.

Comments

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