Method HaveDuplicates
HaveDuplicates(int[])
Checks for duplicates in an array.
Declaration
public static bool HaveDuplicates(int[] arr)
Parameters
Type | Name | Description |
---|---|---|
int[] | arr | Input array. |
Returns
Type | Description |
---|---|
bool | True if there is any duplicate in the input array. |