假设我有这棵树:
O-ROOT
/ \
O-A O-B
/ / \
O-A1 O-B1 O-B2
我想在 C# 中做到这一点:
1. Check every node starting from root (I think the best way is trought recursion?);
2. If I found a node with value = "Hello", return true and STOP the searching function;
你能帮我制定出最好的算法吗?