#3238

Find the Number of Winning Players

pupil · 390 · lc easy +24 · 60.5% accepted · 99 likes · top 59%

Description

You are given integer n and 2D array pick where pick[i] = [xi, yi] means player xi picked a ball of color yi. Player i wins by picking more than i balls of the same color.

Return the number of winning players.

Code

1
2
3