Question

Write a function that finds the first non-repeating element in an array?

Login to Submit

Examples

Finds the first number in the array that doesn't repeat anywhere else

input:[4, 5, 1, 2, 0, 4, 5, 2]
output:1

input:[7, 3, 5, 3, 5, 7, 9]
output:9