Write a method to check if all elements in an array are unique.
EasyProblem Statement
Write a method to check if all elements in an array are unique.
Sample Input
[1, 2, 3, 4, 5]
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Write a method to check if all elements in an array are unique.
[1, 2, 3, 4, 5]
true
Time: 2s · Memory: 256 MB