Python Problem Solving - Lonely Integer
Given an array of integers, where all elements but one occur twice, find the unique element.
Solution:
n = int(input())
array = list(map(int, input().rstrip().split()))
for element in array:
count = array.count(element)
if count == 1:
print(element)
I have found great and massive information. Thanks for sharing
ReplyDeleteLearn Python Online
Python Training
Best Python Online Training