This repository contains a comprehensive implementation of a Singly Linked List in Java, built entirely from scratch. It is part of my Data Structures & Algorithms (DSA) practice during my BS Artificial Intelligence degree.
- Insert at head, tail, and any position
- Delete from head, tail, or a specific position
- Delete node by data value
- Traverse and print the list
- Reverse the entire list
- Detect and remove a cycle using Floydβs Cycle Detection Algorithm
Nodeclass: Represents each node of the linked listLLclass: Contains all core operations and logicMainclass: Driver code to test the linked list operations
This project helps in understanding the internal working of a linked list by manually creating all the core functionalities, without using Javaβs built-in LinkedList class.
- Java
- IDE: IntelliJ / VS Code / Eclipse (any Java-supported IDE)
- Pointer manipulation in Java
- Cycle detection using two-pointer technique
- Edge case handling for insertions and deletions
- Memory reference understanding
Noor Fatima
BS Artificial Intelligence Student
π Pakistan
π GitHub Profile