Skip to content

Instantly share code, notes, and snippets.

@tjdevries
Last active June 27, 2022 19:10
Show Gist options
  • Save tjdevries/03b1189c930634dfc3397ccb584188f1 to your computer and use it in GitHub Desktop.
Save tjdevries/03b1189c930634dfc3397ccb584188f1 to your computer and use it in GitHub Desktop.
from collections import Counter
class Solution:
def solve(self, nums):
c = Counter(nums)
for k, v in c.items():
if k == v:
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment