Skip to content

A collection of solved challenges in Dart based on the Kodeco book “Data Structures & Algorithms in Dart”. Includes tasks for stacks and linked lists, demonstrating core concepts through clean, testable code.

Notifications You must be signed in to change notification settings

Mohammed-qmr/dart-data-structures-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Data Structures Challenges in Dart

This repository contains the solutions to six challenges from the Kodeco book "Data Structures & Algorithms in Dart".


✅ Stack Challenges

  1. Reverse a List

    • File: lib/stacks/reverse_list.dart
    • Prints a list in reverse using a stack.
  2. Balance the Parentheses

    • File: lib/stacks/balance_parentheses.dart
    • Validates if parentheses are balanced using a stack.

🔗 Linked List Challenges

  1. Print in Reverse

    • File: lib/linked_lists/print_in_reverse.dart
    • Prints the linked list in reverse using recursion.
  2. Find the Middle Node

    • File: lib/linked_lists/find_middle_node.dart
    • Finds the middle node using slow/fast pointers.
  3. Reverse a Linked List

    • File: lib/linked_lists/reverse_linked_list.dart
    • Reverses the entire linked list in place.
  4. Remove All Occurrences

    • File: lib/linked_lists/remove_all_occurrences.dart
    • Removes all occurrences of a target value from a linked list.

🧪 How to Run

Each file contains a main() function for testing. Run any file like this:

dart lib/stacks/reverse_list.dart

✍️ Author Mohammed Mahmoud Abu Qamar
Email [email protected]

# dart-data-structures-challenges

About

A collection of solved challenges in Dart based on the Kodeco book “Data Structures & Algorithms in Dart”. Includes tasks for stacks and linked lists, demonstrating core concepts through clean, testable code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages