Monthly Archives: November 2012

Connect the nodes in the same level

Given a binary tree, link all the nodes in the same level. C++: 01 void enList(Node** head, Node* cur) 02 { 03     if(cur==NULL) 04         return; 05     if(*head==NULL){ 06         cur->prv=cur; 07         cur->next=cur; … Continue reading

Posted in Uncategorized | Leave a comment