Count children of specific type cumulatively for each tree node – Javascript
I am fighting with this issue and not succeeding. I have the following tree: It has two types of nodes, question and category. The categories are bolded and the questions have a circle next to them. The numbers in the…