Why doesn't this code work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
24th Aug 2017, 11:23 AM
Gammaburst
Gammaburst - avatar
6 Answers
24th Aug 2017, 11:31 AM
sayan chandra
sayan chandra - avatar
+ 4
I just learnt selection sort today 😂 in Python
24th Aug 2017, 12:12 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
u did ar [i] = ar [j] ar [j] = ar [i] do this... t = ar[i] ar [i] = ar [j] ar [j] = t see my code
24th Aug 2017, 11:36 AM
sayan chandra
sayan chandra - avatar
0
learn all this@@ VENGAT bubble sort selection sort quick sort insertion sort merge sort heapsort radix sort counting sort....😂😂
24th Aug 2017, 12:18 PM
sayan chandra
sayan chandra - avatar
0
@@@ VENGAT ENJOY MY DETAILED SORT LIST###@@@@ *.Selection Sort *.Bubble Sort *.Recursive Bubble Sort *.Insertion Sort *.Recursive Insertion Sort *.Merge Sort *.Iterative Merge Sort *.Quick Sort *.Iterative Quick Sort *.Heap Sort *.Counting Sort *.Radix Sort *.Bucket Sort *.ShellSort *.TimSort *.Comb Sort *.Pigeonhole Sort *.Cycle Sort *.Cocktail Sort *.Bitonic Sort *.Pancake sorting *.Binary Insertion Sort *.BogoSort or Permutation Sort *.Gnome Sort *.Structure Sorting (By Multiple Rules) in C++ *.Stooge Sort *.Tag Sort (To get both sorted and original) *.Tree Sort *.Cartesian Tree Sorting *.Odd-Even Sort / Brick Sort *.QuickSort on Singly Linked List *.QuickSort on Doubly Linked List *.3-Way QuickSort (Dutch National Flag) *.Merge Sort for Linked Lists *.Merge Sort for Doubly Linked List *.3-way Merge Sort
24th Aug 2017, 12:22 PM
sayan chandra
sayan chandra - avatar
0
bro u are using bubble sort and u r runing first loop till the length??? 1st loop -(length-1) and the inner loop should be (length -i-1)!! try it
23rd Nov 2017, 1:38 PM
Bhomik
Bhomik - avatar