Linear structures

Implementation of all common linear data structures in Dart.

Pub

Usage

add linear_structures as a dependency in your pubspec.yaml file.

dependencies:
  flutter:
    sdk: flutter
  linear_structures: 1.0.1

Run pub get to install.

Content

Example

DoublyLinkedList<String> list = DoublyLinkedList();
print("list is empty: ${list.isEmpty}");

list.addLast("B");
list.addFirst("A");
list.addLast("C");

print(list.getAll());
print("removed element: ${list.removeLast()}");
print(list.getAll());

Libraries

linear_structures
linear_structures
linear_structures
linear_structures