countNodes static method
- ElectricalNode? root
Count total nodes in tree
Implementation
static int countNodes(ElectricalNode? root) {
return flattenElectricalNodes(root).length;
}
Count total nodes in tree
static int countNodes(ElectricalNode? root) {
return flattenElectricalNodes(root).length;
}