Skip to content

Missing Test Case - 1394. Find Lucky Integer in an Array #33760

@Kamalesh8166

Description

@Kamalesh8166

LeetCode Username

kamalesh_biswas_01

Problem Number, Title, and Link

  1. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions