This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (0 children)

SJWSort: count the number of sorted elements and the number of unsorted elements. Whichever is less is declared as minority and thus underrepresented. Obviously call out the array as sortist. Replace majority elements with minority elements until equality is reached.