Total Revenue per Category
Asked at Meta · Coding Questions · Difficulty: Easy · Last asked Apr 17, 2026
An order export lists one row per order line, each with a product category and the revenue it earned. Some rows have no revenue recorded yet. Write a function that totals the recorded revenue for each category, ignoring the rows with no revenue.
Loading the problem…
More Meta interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- LLM with Beam Search and Nucleus Sampling (Meta MSL)