Skip to content

Commit 57e9333

Browse files
authored
feat(readme): add Readme.md context
1 parent e3c75cc commit 57e9333

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
11
# insertion-sort
2+
3+
## Instalation
4+
After you clone this repo you need to move inside ```insertion-sort``` directory and rum command
5+
6+
``` npm install```
7+
8+
> To run this appliacion you need **node.js**
9+
10+
## Description
11+
12+
This method take two parametrs:
13+
14+
- **elementsList** -> it is the list which you want to sort
15+
- **direction** -> it is optional parameter which you can set as ```ASC``` or ```DESC``` (ASC is default option)
16+
17+
> ASC (Ascending), DESC Descending)
18+
19+
## How it works
20+
On this graphic you can see how **insertion-sort** algortihm works :
21+
<p align="center">
22+
<img src="https://i.stack.imgur.com/hIlN4.png?raw=true" alt="InsertionSort"/>
23+
</p>

0 commit comments

Comments
 (0)