class TreeNode {
private int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
Is there any sdk method that makes any type of traverse through all nodes of my simple tree-like data structure like this? Could it be useful for unit tests?
Aucun commentaire:
Enregistrer un commentaire