In CRX-Recursion (Bubble Sort), we are sorting the array from index si to li , then , the base condition should be if(li==si ) and not if(li==0) because li may not go to 0 every time if we start the sorting of array other than the index 0.
Secondly, under the second if condition, bubblesort should be recursively called as bubblesort(arr,si,li-1) and not as bubblesort(arr,0,li-1) due to the above mentioned same reason.
Please explain me.