dailycodebase

2 month data structures and algorithmic scripting challenge starting from 20th December 2018 - Coding is Fun! 💯💯 Do it everyday!! Also, Do give us a ⭐ if you liked the repository

View on GitHub

cover

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:

In addition to above operations, following operations are also supported

Read More (Geeks4Geeks)

ques

Solution

JavaScript Implementation

Solution

// To Be Added