DSDmark / BubbleSort

The sorting allows you to sort elements of an array in place. Besides returning the sorted array, the sorting changes the positions of the elements in the original array. in the case of JavaScript by default uses insertion sort for the sort() method.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub tag (latest by date) GitHub GitHub language count GitHub last commit

BubbleSorting Algorithm


Purpose

Sorting algorithms are instructions given to a computer to arrange elements in a particular order. In other words in this application which made with nodejs show that how can we use loop for ordering the elements in particular way In this example we actually using two loop for element for each element of array and comparing them each other after iteration we switch element according to the condition. so here, how it is work. pretty a simple hmm....


How it work

Here is the Reference material

Sorting in js


How to install

  1. Click on green Clone or download button and choose Download ZIP.
  2. Find the downloaded zipped file on your pc and extract it.
  3. Then install nodejs in your local system.
  4. Rum commend

node [filePath]

Once you are done you can close the application in your terminal to quit the application.


Sorting

preview

If you have any issues with that Application feel free to let me know!

If you are more interested, check out the collection of other DSDmark.


About

The sorting allows you to sort elements of an array in place. Besides returning the sorted array, the sorting changes the positions of the elements in the original array. in the case of JavaScript by default uses insertion sort for the sort() method.

License:MIT License


Languages

Language:JavaScript 100.0%