Skip to content

Commit 2a8e011

Browse files
committed
Runtime: 419 ms (Top 61.84%) | Memory: 166.30 MB (Top 53.62%)
1 parent 4a9069e commit 2a8e011

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/D/Design a Food Rating System/Design a Food Rating System.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Runtime: 487 ms (Top 98.33%) | Memory: 166 MB (Top 48.55%)
1+
// Runtime: 419 ms (Top 61.84%) | Memory: 166.30 MB (Top 53.62%)
2+
23
class FoodRatings {
34
public:
45
unordered_map<string, set<pair<int, string>>> cuisine_ratings;
@@ -20,4 +21,4 @@ class FoodRatings {
2021
string highestRated(string cuisine) {
2122
return begin(cuisine_ratings[cuisine])->second;
2223
}
23-
};
24+
};

0 commit comments

Comments
 (0)