I have this array that I want to read:
Tree [ "my",
[ "name",
[ "is",
[ "Toto" ],
[ "Bob" ]
]
],
[ "algo",
[ "doesn't",
[ "work" ]
],
[ "fail" ]
]
]
This should give my 4 sentences:
- My name is Toto
- My name is Bob
- My algo doesn’t work
- My algo fail
But my recursive try doesn’t success …
Thank you.
Since your structure is like that:
Your pseudocode will be like this: