Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7919061
commit cab1ced
Showing
8 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// To Be Added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
![cover](./cover.png) | ||
|
||
# Day 46 - Implement a double ended queue (deque) | ||
|
||
Write a program to implement deque (Double Ended Queue) | ||
|
||
### Double Ended Queue | ||
|
||
Deque or Double Ended Queue is a generalized version of Queue data structure that allows insert and delete at both ends. | ||
|
||
### Operations on Deque | ||
|
||
Mainly the following four basic operations are performed on queue: | ||
|
||
- insertFront(): Adds an item at the front of Deque. | ||
- insertLast(): Adds an item at the rear of Deque. | ||
- deleteFront(): Deletes an item from front of Deque. | ||
- deleteLast(): Deletes an item from rear of Deque. | ||
|
||
In addition to above operations, following operations are also supported | ||
|
||
- getFront(): Gets the front item from queue. | ||
- getRear(): Gets the last item from queue. | ||
- isEmpty(): Checks whether Deque is empty or not. | ||
- isFull(): Checks whether Deque is full or not. | ||
|
||
[Read More (Geeks4Geeks)](https://www.geeksforgeeks.org/deque-set-1-introduction-applications/) | ||
|
||
## Solution | ||
|
||
## JavaScript Implementation | ||
|
||
### [Solution](./JavaScript/deque.js) | ||
|
||
```js | ||
// To Be Added | ||
``` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.