Sorting: Bubble Sort

  • + 0 comments

    In python, you dont have to create a temp variable to swap elements. So, you can easily them by interchanging their values in this way. Here, the value of a[i] is assigned to a[i+1] and vice versa.