Problem 3069 · Easy

Distribute Elements Into Two Arrays I

Seed two arrays with the first two values, then send each next value to the array whose last element is larger.

Open the interactive visualisation