blob: 0c8da4704933bdbd7c64aa4487aaf23377983e1d (
plain)
1
2
3
4
5
6
7
8
9
|
def get_Odd_Occurrence(arr,arr_size):
for i in range(0,arr_size):
count = 0
for j in range(0,arr_size):
if arr[i] == arr[j]:
count+=1
if (count % 2 != 0):
return arr[i]
return -1
|