Himanshu Gupta wrote:finds the index of the first repeating character in an array, by iterating through the array only once.
I implemented this as per the code given. Is there any other efficient way to do it?
>
This will not work when we have an array like {'h','y','d','h'}