Guest User

Untitled

a guest
Nov 5th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def find_uniq(arr):
  2.     arr_to_set = set(arr)
  3.     for n in arr_to_set:
  4.         if arr.count(n) == 1:
  5.             return n   # n: unique integer in the array
  6.     return None
Advertisement
Add Comment
Please, Sign In to add comment