Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
704 views

Check array in linear time with a constant space complexity

Given an array of integers I have to return true if all the elements in the array are different or all the elements are the same. Otherwise, I have to return false. E.g. ...
some1 here's user avatar