Deep tracing algorithm based on swift demo
no vote
As long as any match to the ID/parentId structure data, are available through the quick sort algorithm and get the results as shown below (data as test data) New 5 nodes, and below is the result, and new data can be at any level, here's just a model//001//| // 002 // | | // | 003 // | | // | 004 // | 005