Given an array of size N in which every number is between 1 and N, determine if there are any dupli
GivenanarrayofsizeNinwhicheverynumberisbetween1andN,determineifthereareanyduplicatesinit. importjava.util.Arrays;importjava.util.HashSet;importjava.util.Set;publicclassDuplicate{ publicstaticbool