Create a function that, given an array of integers, returns the first repeating element in the array. If there are no duplicates, return -1....
New to InterviewQs? Sign up now.
By proceeding, you agree to our Terms and Conditions and Privacy Policy.
Loading editor...