Back to course home
0% completed
Vote For New Content
The most simple way of doing this Python
Mohammed Dh Abbas
May 31, 2024
def largestUniqueNumber(self, A: List[int]) -> int: counter = Counter(A) max_num = -1 for num, freq in counter.items(): if num > max_num and freq == 1: max_num = num return max_num
0
0
Comments
Comments
On this page