Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Create BubbleSort.cs - #232

Open
hraverkar wants to merge 2 commits into
kingroryg:masterfrom
hraverkar:patch-1
Open

Create BubbleSort.cs#232
hraverkar wants to merge 2 commits into
kingroryg:masterfrom
hraverkar:patch-1

Conversation

@hraverkar

Copy link
Copy Markdown

Bubble Sort - > Following are the steps involved in bubble sort(for sorting a given array in ascending order):

  • Starting with the first element(index = 0), compare the current element with the next element of the array.
  • If the current element is greater than the next element of the array, swap them.
  • If the current element is less than the next element, move to the next element. Repeat Step 1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant