Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
--------------------------------------------------------------------------------------------- In this tutorial we will write a program to implement bubble sort algorithm. Bubble sort is a sorting algorithm which has time complexity of n^2.
Working -
Step 1 - Starting with the first element(index = 0), compare the current element with the next element of the array.
Step 2 - If the current element is greater than the next element of the array, swap them.
Step 3 - If the current element is less than the next element, move to the next element.
Step 4 - Repeat Step 1 till the list is sorted.
Full DSA playlist - https://www.youtube.com/watch?v=XCyuHSJS7XE&list=PLIY8eNdw5tW_zX3OCzX7NJ8bL1p6pWfgG
Full Code & Theory article - https://simplesnippets.tech/bubble-sort-algorithm-data-structures/
C++ Programming Tutorials for Beginners Course - https://www.youtube.com/watch?v=AKNGgAXTark&list=PLIY8eNdw5tW_o8gsLqNBu8gmScCAqKm2Q
Simple Snippets Official Website -
http://simplesnippets.tech/
Simple Snippets on Facebook -
https://www.facebook.com/simplesnippets/
Simple Snippets on Instagram -
https://www.instagram.com/simplesnippets/
Simple Snippets on Twitter -
https://twitter.com/simplesnippet
Simple Snippets Google Plus Page -
https://plus.google.com/+SimpleSnippets
Simple Snippets email ID -
[email protected]
For More Technology News, Latest Updates and Blog articles visit our Official Website - http://simplesnippets.tech/