I want to write a function
int Listofleaves (Tree tree,List* list)
which recieve a binary tree -"tree"(the input) and a list pointer "list"(output)...the function supposed to return the trees leaves nodes(nodes with no children) from right to left as a linked list(!) in "list"...and also return at the end the sum of all those leaves....
thanks for help people i just have no idea broke my head for long time