This project contains custom implementations of core data structures in C#, designed from scratch to demonstrate deep understanding of data structure logic and internals.
- FIFO (First In, First Out) behavior.
- Supports
Enqueue,Dequeue,Peek, and internal array resizing logic, etc. - Efficient and educational alternative to built-in
Queue<T>.
- LIFO (Last In, First Out) behavior.
- Supports
Push,Pop,Peek, and resizing logic, etc. - Demonstrates classic stack behavior without relying on .NET collections.
- Basic node-based implementation.
- Supports
AddFirst,AddLast,Remove,Find, etc.
- Nodes contain both
NextandPrevpointers. - Supports bidirectional traversal, insertion, and deletion.
- Head and tail are connected to form a circular loop.
- Each node links forward and backward to its neighbors.
- Supports full set of operations:
AddFirst,AddLast,AddBefore,AddAfterRemoveFirst,RemoveLast,RemoveFind,FindLast,Insert(index)CopyTo(array, index),Clear()- Full iteration with
IEnumerable<T>
These implementations are designed for:
- Practicing algorithm fundamentals.
- Understanding memory, pointer behavior, and linked structure manipulation.
- Preparing for technical interviews.
- Gaining full control over data structure internals.