The reordering pattern in the third image is actually a leetcode question 498, interestingly to find a use here.
The reordering pattern in the third image is actually a leetcode question 498, interestingly to find a use here.