Skip to content

Instantly share code, notes, and snippets.

@mivvka
Created June 29, 2021 15:39
Show Gist options
  • Save mivvka/e5fad31b313616f38cb2d0104ec5fb9c to your computer and use it in GitHub Desktop.
Save mivvka/e5fad31b313616f38cb2d0104ec5fb9c to your computer and use it in GitHub Desktop.
Algo Test
inData = [5,8,8,4,5,2,6,3,7]
dubb = -1
for i in inData:
if dubb>0 : break
t=0
for j in inData:
if i==j : t=t+1
if t>1 : dubb = j; break
print(dubb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment