@admin ,please update the solutions,the first one in the editorial is definitely wrong


#1

The first solution in the editorial is definitely wrong.
For example, try this test case: [ 2, 1, 1, 2, 2 ]