I'm wondering if there's an existing word to describe a process that I'm currently using. I want to call it "flattening a tree" but I feel like there must be a better word or phrase.
input:
|--D
--B
| |--C
|
A-E
|
| |--G
--F
|--H
output:
[ [A, B, D]
[A, B, C]
[A, E]
[A, F, G]
[A, F, H] ]
Is there an established name for this process?
Path enumeration?
DFS traversal?
or my favourite
Tree arrayfication!
How about 'Hydrating' (or DeHydrating) depending on the situation ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With