Bubble_Sort ( Recursive , Linked List)

https://ide.codingblocks.com/s/51890
https://hack.codingblocks.com/contests/c/457/543

why this code is not producing any output??

Hey, why you are taking input j? just pass 0 instead of j in main() bubbblesort2() recursive call and print the output after this call.

https://ide.codingblocks.com/s/53376
still an error

Hey Preesh, still you are making the same mistake check your code’s line:27 cin>>n>>j; you are taking input j but user is not providing any input for j variable so it will take the very next input which will result in wrong answer.