![]() |
Help please URGENT! creating linked list from tree leaves
hii , I'll appreciate it if someone please help me with this problem
I want to create a linked-list from the leaves of a tree ordered from right to left . without using a Static or global variable typedef struct t_node { int data; struct t_node *left; struct t_node *right; } T_NODE; typedef struct list_node { int data; struct list_node *next; } L_NODE; the function header : L_NODE* leavesRightToLeft (T_NODE* root, 1 more variable ) for example : Code:
31 -> 7 -> 4 I've tried to solve it but i have a problem with the pointers, the idea works, but can you help me with the pointers please or you can just give me another solution ? Code:
Lnode *leavesRightToLeft(Tree *root,Lnode *last) |
| All times are GMT +5.5. The time now is 07:09. |