We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Insertion Sort - Part 1
Insertion Sort - Part 1
+ 7 comments by far worst problem in terms of requirements. seriously, it's so counterintuitive to do it 'the wrong way' instead of just implementing plain insert sort with printout each time values are swapped
+ 2 comments solving the problem - 5 minutes
printing to output the way author wanted - 55 minutes
+ 26 comments The test case 2 is failing.Not sure what's the issue.Below is the output.Did anyone face the same issue.
2 3 4 5 6 7 8 9 10 10
2 3 4 5 6 7 8 9 9 10
2 3 4 5 6 7 8 8 9 10
2 3 4 5 6 7 7 8 9 10
2 3 4 5 6 6 7 8 9 10
2 3 4 5 5 6 7 8 9 10
2 3 4 4 5 6 7 8 9 10
2 3 3 4 5 6 7 8 9 10
2 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
+ 0 comments Stupid problem
+ 4 comments perhaps this problem is tough for those who know insertion sort !!!!
;p
Load more conversations
Sort 761 Discussions, By:
Please Login in order to post a comment