Skip to content

VrushaliParmar/Sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sorting

Assignment on Sorting a Array EXPLANATION OF CODE:

  1. Input and Choice: The program first asks the user to input the number of elements and the elements themselves. Then, it presents a menu to select the sorting technique.

  2. Switch Case: Based on the user's choice (1, 2, or 3), the corresponding sorting function is called.

  3. Sorting Algorithms:

Bubble Sort: Repeatedly swaps adjacent elements if they are in the wrong order.

Selection Sort: Finds the minimum element from the unsorted part and swaps it with the first unsorted element.

Insertion Sort: Builds a sorted array one element at a time by comparing and inserting elements in their correct positions.

About

Assignment on Sorting a Array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages