Skip to content

Commit 7b77edb

Browse files
committed
Add day 49
1 parent d258fba commit 7b77edb

File tree

6 files changed

+34
-1
lines changed

6 files changed

+34
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Motivate yourself to code daily till 60 days, and see the magic! Coding will bec
7676
| [Day 46](./day46) | [Double Ended Queue](./day46) | [http://codetoexpress.tech/dc/day46/](http://codetoexpress.tech/dc/day46/) | **Advanced** |
7777
| [Day 47](./day47) | [Singly Linked List](./day47) | [http://codetoexpress.tech/dc/day47/](http://codetoexpress.tech/dc/day47/) | **Intermediate** |
7878
| [Day 48](./day48) | [Doubly Linked List](./day48) | [http://codetoexpress.tech/dc/day48/](http://codetoexpress.tech/dc/day48/) | **Intermediate** |
79+
| [Day 49](./day49) | [MiddleMost Node Search](./day49) | [http://codetoexpress.tech/dc/day49/](http://codetoexpress.tech/dc/day49/) | **Intermediate** |
7980

8081
## [More Problems](./BONUS/README.md)
8182

File renamed without changes.

day48/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![cover](./cover.png)
22

3-
# Day 47 - Implement a doubly doubly linked list
3+
# Day 48 - Implement a doubly linked list
44

55
Write a program to implement a doubly linked list
66

day49/JavaScript/dll.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// To Be Added

day49/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
![cover](./cover.png)
2+
3+
# Day 49 - MiddleMost Node Search
4+
5+
Given a singly linked list, find it's middle-most element, *without* knowing the size of the linked list or using any counter variable.
6+
7+
### Example
8+
9+
```
10+
given linked list: 1 -> 2 -> 3
11+
output: 2
12+
13+
given linked list: 1 -> 2 -> 3 -> 4
14+
output: 2
15+
```
16+
17+
### HINT
18+
19+
👉 Make 2 pointer variables which would iterate over the Linked List, such that in each iteration, first variable moves 1 step forward, and the second pointer variable moves 2 steps forward.
20+
21+
👉 When the second pointer reaches the end, first pointer would reach to the middlemost element
22+
23+
## Solution
24+
25+
## JavaScript Implementation
26+
27+
### [Solution](./JavaScript/middleNode.js)
28+
29+
```js
30+
// To Be Added
31+
```

day49/cover.png

143 KB
Loading

0 commit comments

Comments
 (0)