Non Repeating Element

easy
1. You will be given one array 2. You need to print the first non repeating element. 3. If no such distinct element exists, return 0 4. Input and output is handled for you 5. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output is handled for you.

Constraints

1 <= N <= 10^7;
 -10^16 <= Ai <= 10^16
 A[i] !=0

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
8
1 9 7 7 6 10 9 1
Output
6
Previous
Non Repeating Character
Next
Numbers With Prime Frequencies Greater Than Or Equal To K

Related Questions