Tree -> DAG

This commit is contained in:
Adam Millerchip 2020-12-08 01:49:07 +09:00
parent b2503c0e5b
commit dbf14680ba

View file

@ -37,3 +37,7 @@ Just walk the tree counting the children as we go.
Wondering if my use of MapSet for the inverted tree was overkill, simpler way? Wondering if my use of MapSet for the inverted tree was overkill, simpler way?
I *think* I got the fundamental idea of this one, rather than just hacking together whatever works, I *think* I got the fundamental idea of this one, rather than just hacking together whatever works,
but seeing the other answers will be the judge of that :-) but seeing the other answers will be the judge of that :-)
** Update **
I should have said DAG rather than tree, as each node can have multiple parents.