Why my printallknode function is not printing all the nodes?

Hello @raj.verma5454,

  1. It is required to print the nodes in increasing order.
    So, rather printing it directly store it in a vector and then later sort the vector before printing it’s element.
    Modification: line 40, 50, 72, 86, 125

  2. Don’t forget to clean the vector before next test case.
    Line 134

  3. Missing case: when there is no node
    line 118

  4. Wrong function call.
    Line 77, 91.

I have corrected your code:

Hope, this would help.
Give a like if you are satisfied.

Oh I was making a blunder. Calling wrong function. Thank you so much.

Anytime @raj.verma5454,

Please, mark it as resolved.