Problem 1389 · Easy

Create Target Array in the Given Order

Construct a target array by inserting each value at its supplied current index.

Open the interactive visualisation