Skip to content

noor05-creator/DoublyLinkedList-From-Scratch-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Doubly Linked List From Scratch in Java

This repository contains a complete implementation of a Doubly Linked List in Java using both head and tail pointers. All major operations such as insertion, deletion, traversal, and searching are implemented from scratch β€” without using any Java library collections.

πŸš€ Features

  • pushFront(int data) – Insert at the beginning
  • pushBack(int data) – Insert at the end
  • insertAtIndex(int data, int position) – Insert at a specific index
  • popFront() – Remove element from the front
  • popBack() – Remove element from the end
  • deleteAtIndex(int index) – Delete node at a specific index
  • deleteThroughdata(int data) – Delete first node with a specific value
  • isEmpty() – Check if the list is empty
  • print() – Print the list from head to tail

πŸ’‘ Learning Focus

This project is part of my DSA (Data Structures & Algorithms) practice to master:

  • Bidirectional node linking
  • Pointer manipulation (next & prev)
  • Special case handling (insertion/deletion at head, tail, or only node)
  • Dynamic memory and structure control

πŸ“‚ File Structure

  • Node – Doubly linked node with data, prev, and next
  • doublyLL – Class implementing the doubly linked list logic
  • Main – Sample test cases and operations

πŸ› οΈ Built With

  • Java

  • IDE: IntelliJ IDEA

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

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

About

Doubly linked list is created from scratch using head and tail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages