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

 
 
 

Contributors

Languages

โšก