Skip to content

amrnabih113/Dart_DataStructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Data Structures in Dart

A curated collection of essential data structures implemented in Dart with clean code and real-world use cases.

Typing SVG


📘 About This Project

This repository provides a collection of fundamental data structures implemented in Dart, including detailed explanations, usage examples, and performance insights.

It's perfect for:

  • Dart & Flutter developers learning algorithms.
  • Students preparing for technical interviews.
  • Anyone wanting to understand how data works under the hood in Dart.

📦 What's Included?

Category Structures
Linear ✅ Lists, ✅ Linked Lists, ✅ Stacks, ✅ Queues
Non-linear ✅ Trees, ✅ Graphs
Hashing ✅ Hash Tables, ✅ Sets
Advanced ⏳ Tries, ⏳ Heaps, ⏳ Priority Queues
Utilities ✅ Custom Iterators, ✅ Comparators

📁 Folder Structure

data_structures_dart/
│
├── lib/
│   ├── arrays/
│   ├── linked_list/
│   ├── stack/
│   ├── queue/
│   ├── tree/
│   ├── graph/
│   └── hash_table/
│
├── test/
│   └── unit_tests_for_all_structures.dart
│
└── README.md

🚀 Getting Started

  1. Clone the repository
git clone https://github.com/amrnabih113/data_structures_dart.git
cd data_structures_dart
  1. Run tests
dart test
  1. Explore the code
  • Each file is well-commented.
  • You’ll find main() functions for demo purposes.

🧪 Sample: Stack Implementation

class Stack<T> {
  final _list = <T>[];

  void push(T value) => _list.add(value);
  T pop() => _list.removeLast();
  T get top => _list.last;
  bool get isEmpty => _list.isEmpty;
}

📈 Performance Insights

Structure Access Search Insertion Deletion
Array O(1) O(n) O(n) O(n)
Linked List O(n) O(n) O(1) O(1)
Hash Table O(1) O(1) O(1)
Stack/Queue O(n) O(1) O(1)

🧑‍💻 Author

Amr Mohamed Nabih


⭐️ Star this repo

If you find this useful, please consider starring ⭐ it — it helps others discover this work and supports open learning.

Let’s build a smarter world, one data structure at a time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages