Skip to content

Commit c8d0509

Browse files
committed
add day50
1 parent 7b77edb commit c8d0509

File tree

12 files changed

+39
-1
lines changed

12 files changed

+39
-1
lines changed

day46/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ In addition to above operations, following operations are also supported
2626

2727
[Read More (Geeks4Geeks)](https://www.geeksforgeeks.org/deque-set-1-introduction-applications/)
2828

29+
[ques](./ques.png)
30+
2931
## Solution
3032

3133
## JavaScript Implementation
File renamed without changes.

day47/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ A linked list is a linear data structure, in which the elements are not stored a
2424

2525
Try to implement a singly linked list.
2626

27+
[ques](./ques.png)
28+
2729
## Solution
2830

2931
## JavaScript Implementation
File renamed without changes.

day48/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ In singly linked list, to delete a node, pointer to the previous node is needed.
2929

3030
Try to implement a doubly linked list.
3131

32+
[ques](./ques.png)
33+
3234
## Solution
3335

3436
## JavaScript Implementation

day48/ques.png

1.09 MB
Loading

day49/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Day 49 - MiddleMost Node Search
44

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.
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.
66

77
### Example
88

@@ -20,6 +20,8 @@ output: 2
2020

2121
👉 When the second pointer reaches the end, first pointer would reach to the middlemost element
2222

23+
[ques](./ques.png)
24+
2325
## Solution
2426

2527
## JavaScript Implementation

day49/ques.png

886 KB
Loading

day50/JavaScript/nthFromEnd.js

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

day50/README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
![cover](./cover.png)
2+
3+
# Day 50 - Nth From End
4+
5+
Given a singly linked list, and a number "n", find the nth element **from end** in the Linked List
6+
7+
Note that this is a sinigly linked list and you cannot traverse in the backward direction.
8+
9+
### Example
10+
11+
```
12+
given linked list: 1 -> 2 -> 3 -> 4 | nthFromEnd (2)
13+
output: 3
14+
15+
given linked list: 1 -> 2 -> 3 -> 4 | nthFromEnf (5)
16+
output: undefined
17+
```
18+
19+
[ques](./ques.png)
20+
21+
## Solution
22+
23+
## JavaScript Implementation
24+
25+
### [Solution](./JavaScript/nthFromEnd.js)
26+
27+
```js
28+
// To Be Added
29+
```

day50/cover.png

132 KB
Loading

day50/ques.png

425 KB
Loading

0 commit comments

Comments
 (0)