–1 –1 vote Data Structures + – himgta 791 views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Show 3 previous comments Shaik Masthan commented Sep 12, 2018 reply Follow flag you are right, i mistaken 0 0 replyShare himgta commented Sep 12, 2018 reply Follow flag @Shaik Masthan brother I m not getting this line node->right->right=ptr... please explain the code 0 0 replyShare Shaik Masthan commented Sep 12, 2018 reply Follow flag ptr = node->right, ===> the sub-tree of node-> right represent by ptr now inserting a new node at place of node->right, let it Q node->right->right = ptr ===> Q-> right = ptr ===> attaching ptr to the right of Q 0 0 replyShare Please log in or register to add a comment.