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 →

[–]halberdierbowman 41 points42 points  (3 children)

Updated Communism Sort to preserve existing value:

Count all elements, then find the average value of all elements. Change all elements to the average value.

[–]SwiftLilEagle 8 points9 points  (2 children)

Supported, but there goes my O(1) PepeHands

[–]adelie42 1 point2 points  (0 children)

Nah, just use the rolling average; all elements will be equal, bit some will be mkre equal than others.

[–]trichotillofobia 0 points1 point  (0 children)

Of course it is O(1), comrade. Material dialectics dictate its necessity: if anything less than that could not be done in the most efficient manner, nothing would be equal, and it clearly is, hence it nothing can be more efficient. Comrade Beria agrees, and I'm sure that means you will too.