Design a Food Rating System

Design a food rating system that supports the following operations:

  • FoodRatings(foods, cuisines, ratings): Initialize the system with three equal-length arrays. foods[i] is the name of the i-th...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: