Quantcast
Channel: Get deep of a logic hierarchical structure - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Shivam for Get deep of a logic hierarchical structure

Considering you've node with reference of parent_node then function deep could implemented as follows:(Each node has id & data property)int deep(node *n) { /* deep of root node is zero and that's...

View Article



Get deep of a logic hierarchical structure

I have the data that represent hierarchical structure|id|parent_id|data||1 |0 |cat1||2 |1 |cat2||3 |4 |cat3||4 |5 |cat4| |5 |0 |cat5|That represent a hierarchical structure like this1|_2|5|_4 |_3I need...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images