Nested HashMap
Code\nrust []\nuse std::collections::HashMap;\n\nimpl Solution {\n    pub fn winning_player_count(_: i32, pick: Vec<Vec<i32>>) -> i32 {\n        pick.into_iter(
# Code\n```rust []\nuse std::collections::HashMap;\n\nimpl Solution {\n    pub fn winning_player_count(_: i32, pick: Vec<Vec<i32>>) -> i32 {\n        pick.into_iter()\n            .map(|xy| (xy[0], xy[1]))\n            .fold(HashMap::<_, HashMap<_, _>>::new(), |mut scores, (x, y)| {\n                scores\n                    .entry(x)\n                    .or_default()\n                    .entry(y)\n                    .and_modify(|c| *c += 1)\n                    .or_insert(1);\n                scores\n            })\n            .into_iter()\n            .filter(|(i, scores)| scores.values().any(|count| count > i))\n            .count() as i32\n    }\n}\n```
['Rust']