Check if there are any repeated elements in a array recursively
- by devoured elysium
I have to find recursively if there is any repeated element in an integer array v.
The method must have the following signature:
boolean hasRepeatedElements(int[] v)
I can't see any way of doing that recursively without having to define another method or at least another overload to this method (one that takes for example the element to go…