I want to calculate the sum of all descendants of every node in DAG efficiently. So I want to know that if there is an algorithm to do it.
Aucun commentaire:
Enregistrer un commentaire