[0] [1] [2] [3] [4] [5] [6] [7] 0 0 nullptr 3 3 nullptr 1 nullptr 2 nullptr 5 nullptr 6 nullptr 7 nullptr 4 nullptr 0 0 3 3 1 2 5 6 7 nullptr 4 sorted list :