I am trying to create a structure that would look like this, the number of items it could hold would be n:
7
4 8
2 5 9
1 3 6 10
And converting it to a list like so:
[[1, 3, 6, 10],[2, 5, 9],[4, 8],[7]]
I can't wrap my head around it, I figured each item increases by 1, then 2 then 3 and so on, but the way I want them to store is something I can't figure out.
fn(6)
[[1 3 6],[2 5],[4]]