LeetCode Username
kamalesh_biswas_01
Problem Number, Title, and Link
- Find Lucky Integer in an Array https://leetcode.com/problems/find-lucky-integer-in-an-array/
Bug Category
Missing test case (Incorrect/Inefficient Code getting accepted because of missing test cases)
Bug Description
new test case
Language Used for Code
Python/Python3
Code used for Submit/Run operation
class Solution:
def findLucky(self, arr: list[int]) -> int:
from collections import Counter
freq = Counter(arr)
return max((num for num, count in freq.items() if num == count), default=-1)
Expected behavior
wanna contribute a testcase
Screenshots
No response
Additional context
No response