|
This depends on whether the thing you are looking for is regular. If not, there is no good way. Just like your example, if there is a regularity, you can decompose the string you are looking for. How many bits represent which LEVEL of the Treeview. Then return to the obtained index to continue to check, here recursive method. But the query is one-way in depth. No need to traverse all! |
|