There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.
Accounts which solely post advertisements, or persistently post them may be terminated.
Toes , 1 month ago (edited 1 month ago) Let me help you sort things out <span style="color:#323232;">def bubbleSort(arr): </span><span style="color:#323232;"> </span><span style="color:#323232;"> n = len(arr) </span><span style="color:#323232;"> </span><span style="color:#323232;"> for i in range(n-1): </span><span style="color:#323232;"> </span><span style="color:#323232;"> for j in range(0, n-i-1): </span><span style="color:#323232;"> </span><span style="color:#323232;"> if arr[j] > arr[j+1]: </span><span style="color:#323232;"> </span><span style="color:#323232;"> arr[j], arr[j+1] = arr[j+1], arr[j] </span><span style="color:#323232;"> </span><span style="color:#323232;">#https://www.sortvisualizer.com/bubblesort/ </span>
Let me help you sort things out
<span style="color:#323232;">def bubbleSort(arr): </span><span style="color:#323232;"> </span><span style="color:#323232;"> n = len(arr) </span><span style="color:#323232;"> </span><span style="color:#323232;"> for i in range(n-1): </span><span style="color:#323232;"> </span><span style="color:#323232;"> for j in range(0, n-i-1): </span><span style="color:#323232;"> </span><span style="color:#323232;"> if arr[j] > arr[j+1]: </span><span style="color:#323232;"> </span><span style="color:#323232;"> arr[j], arr[j+1] = arr[j+1], arr[j] </span><span style="color:#323232;"> </span><span style="color:#323232;">#https://www.sortvisualizer.com/bubblesort/ </span>