Count Elements With Strictly Smaller and Greater Elements
Count the values that have some other value strictly below and some other value strictly above them. The visual sorts the array and marks the minimum and maximum values that never qualify.
Count the values that have some other value strictly below and some other value strictly above them. The visual sorts the array and marks the minimum and maximum values that never qualify.