Whats the mistake?
(Algo++) Advanced Data Structures in C++
💡-sorting-in-linear-time
garganshul151
(anshul garg)
January 27, 2020, 4:16pm
#1
keshavgupta0103
(Keshav Gupta)
January 27, 2020, 4:26pm
#2
you need to enclose swap and increment statements after the else in a single block ( i.e inside {}).
you need print each element in a new line so endl will come after cout<<a[i].