Skip to content

Commit 09be041

Browse files
committed
Add day 34
1 parent 18dcb51 commit 09be041

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Motivate yourself to code daily till 60 days, and see the magic! Coding will bec
6161
| [Day 31](./day31) | [Bubble Sort](./day31) | [http://codetoexpress.tech/dc/day31/](http://codetoexpress.tech/dc/day31/) | **Beginner** |
6262
| [Day 32](./day32) | [Selection Sort](./day32) | [http://codetoexpress.tech/dc/day32/](http://codetoexpress.tech/dc/day32/) | **Intermediate** |
6363
| [Day 33](./day32) | [Insertion Sort](./day33) | [http://codetoexpress.tech/dc/day33/](http://codetoexpress.tech/dc/day33/) | **Beginner** |
64+
| [Day 34](./day34) | [Merge Sort](./day34) | [http://codetoexpress.tech/dc/day34/](http://codetoexpress.tech/dc/day34/) | **Intermediate** |
6465

6566
## [More Problems](./BONUS/README.md)
6667

day34/JavaScript/mergeSort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// To be added

day34/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
![cover](./cover.png)
2+
3+
# Day 34 - Search and Sort Algorithms Part G: Merge Sort
4+
5+
Now that we have come this far in searching and sorting algorithms, let's look at a few more algorithms for a couple of days and then we will proceed with questions on data structures like linked lists (singly linked and doubly linked), stacks, queues, trees etc. So today, try to implement merge sort.
6+
7+
Referance: https://www.geeksforgeeks.org/merge-sort/
8+
9+
## Question
10+
11+
**Type:** Divide and Conquer
12+
13+
Given an unsorted list of elements, write a program to sort the given list using merge sort.
14+
15+
**Example**
16+
17+
```
18+
input: [1, 5, 2, 7, 3, 4, 8, 9, 6]
19+
output: [1, 2, 3, 4, 5, 6, 7, 8, 9]
20+
```
21+
22+
## Solution
23+
24+
### [JavaScript Implementation](./JavaScript/mergeSort.js)
25+
26+
```js
27+
to be added
28+
```

day34/cover.png

133 KB
Loading

0 commit comments

Comments
 (0)