Challenge: First Non-Repeating Integer in a List
Given a list, find the first integer which is unique in the list. Unique means the number does not repeat and appears only once in the whole list. Implement your solution in Python and see if it runs correctly.
We'll cover the following
Problem Statement
Implement a function, find_first_unique(lst)
that returns the first unique integer in the list.
Input
A list of integers
Output
The first unique element in the list
Sample Input
[9,2,3,2,6,6]
Sample Output
9
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.