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

Create Bubble Sort Technique#77

Open
aniketakumari wants to merge 1 commit intoayushi-ras:mainfrom
aniketakumari:aniketakumari-patch-1
Open

Create Bubble Sort Technique#77
aniketakumari wants to merge 1 commit intoayushi-ras:mainfrom
aniketakumari:aniketakumari-patch-1

Conversation

@aniketakumari
Copy link
Copy Markdown

Pull Request: Bubble Sort Implementation

Description:
This PR introduces a Python implementation of the Bubble Sort algorithm, a simple and fundamental sorting technique. Bubble Sort works by repeatedly stepping through the list, comparing each pair of adjacent items, and swapping them if they are in the wrong order. It continues this process until the entire list is sorted.

Changes Made:

Added a Python function, bubble_sort(arr), which sorts a given list in ascending order using the Bubble Sort algorithm. Implemented user input for an unsorted list of integers. Displayed the sorted array as output.
Purpose:
The purpose of this PR is to provide a clear and working implementation of Bubble Sort in Python. Bubble Sort, although not the most efficient sorting algorithm, serves as a learning example and can be used in small-scale applications.

Testing:
Tested the code with various input lists, including edge cases, to ensure that Bubble Sort correctly sorts the elements in ascending order.

Please review and merge this PR.

Pull Request: Bubble Sort Implementation

Description:
This PR introduces a Python implementation of the Bubble Sort algorithm, a simple and fundamental sorting technique. Bubble Sort works by repeatedly stepping through the list, comparing each pair of adjacent items, and swapping them if they are in the wrong order. It continues this process until the entire list is sorted.

Changes Made:

Added a Python function, bubble_sort(arr), which sorts a given list in ascending order using the Bubble Sort algorithm.
Implemented user input for an unsorted list of integers.
Displayed the sorted array as output.
Purpose:
The purpose of this PR is to provide a clear and working implementation of Bubble Sort in Python. Bubble Sort, although not the most efficient sorting algorithm, serves as a learning example and can be used in small-scale applications.

Testing:
Tested the code with various input lists, including edge cases, to ensure that Bubble Sort correctly sorts the elements in ascending order.

Please review and merge this PR.
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