1D Array

Array Sorting (Bubble Sort)

Bubble sort is a basic sorting algorithm that repeatedly steps through the list, swapping adjacent elements if they are in the wrong order. Suppose we have an array with its lower limit L and upper limit U which is to be sorted in order using bubble sort. Algorithm INPUT : ARRAY A[L…U] OUTPUT: SORTED ARRAY

Array Sorting (Bubble Sort) Read More »