(root)
| 23 | |
| 24 | |
| 25 | var minDepth = function(root) { |
| 26 | if(root) { |
| 27 | return traversal(root, 1); |
| 28 | } else { return 0 } |
| 29 | }; |
| 30 | |
| 31 | // traversal of the tree is recursive to ensure travel down |
| 32 | // both the right and left children nodes |
nothing calls this directly
no test coverage detected