Linked list insertion sort


please see the error

my code is not sorting 1st element

Hello @Bansaljatin05,

I have corrected your code:


Refer to the comments to understand changes.

Let me know if you do not understand something.
Hope, this would help.
Give a like if you are satisfied.

1 Like