Give the example of bubble sort algorithm
For example List: - 7 4 5 3
1. 7 and 4 are compared
2. Since 4 < 7, 4 is stored in a temporary variable.
3. The content of 7 is now stored in the variable which was holding 4
4. Now, content of temporary variable and variable previously holding 7 are swapped.