Create a function that checks if all elements in an array are equal.
EasyProblem Statement
Create a function that checks if all elements in an array are equal.
Sample Input
[5, 5, 5, 5]
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Create a function that checks if all elements in an array are equal.
[5, 5, 5, 5]
true
Time: 2s · Memory: 256 MB