In this video, we are going to discuss an interview question which was asked in Amdocs. The candidate has 1 year of experience. Find the first repeating character from the array. #javacodinginterview #javainterview
Hi Saikiran, It depends a lot on where you did your college from. Also, from where you got your 1 year experience. If you see this disparity of the package is everywhere in the IT industry. Two individuals with the same experience may have different packages.
Bro if you take array {1,5,3,4,3,6,5} then according to your program it will give output-3 But the correct output is -5 Plese take this array in your program then tell me please.
You are right bro, two things to change. We have to run loop from arr.length-1 to 0 instead of 0 to arr.length-1. Also, we need to remove the break statement. Thanks for pointing out.