Skip to content

noor05-creator/Deque-Using-DoublyLinkedList-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Deque Using Doubly Linked List in Java

This repository contains an implementation of a Deque (Double-Ended Queue) using a custom Doubly Linked List in Java. It supports insertion and deletion from both ends with efficient pointer manipulation.

πŸš€ Features

  • pushFront(int data) – insert element at the front
  • pushBack(int data) – insert element at the rear
  • popFront() – remove element from the front
  • popBack() – remove element from the rear
  • isEmpty() – check if the deque is empty
  • print() – display all elements from front to rear

πŸ’‘ Learning Focus

This project is part of my Data Structures & Algorithms (DSA) learning journey. It deepens understanding of:

  • Doubly linked list pointer mechanics
  • Efficient queue operations from both ends
  • Edge case handling (like empty deque, single-element deque)

πŸ“‚ File Structure

  • Node – defines a doubly linked node with prev, next, and data
  • deque – class that handles all deque operations
  • Main – contains sample usage and tests

πŸ› οΈ Built With

  • Java
  • IDE: IntelliJ IDEA

πŸ‘©β€πŸ’» Author

Noor Fatima
BS Artificial Intelligence Student
GitHub: https://github.com/noor05-creator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages