https://leetcode.com/problems/design-a-food-rating-system/ class FoodRatings: def __init__(self, foods: List[str], cuisines: List[str], ratings: List[int]): self.cuisines_food = defaultdict(SortedSet) # cuisine -> (rating, food) self.cuisines = {} # food -> cuisine self.ratings = {} #food -> rating for i in range(len(foods)): self.cuisines_food[cuisines[..