Last updated:
0 purchases
linear structures
Linear structures #
Implementation of all common linear data structures in Dart.
Usage #
add linear_structures as a dependency in your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
linear_structures: 1.1.2
copied to clipboard
Run pub get to install.
Content #
SinglyLinkedList
DoublyLinkedList
Stack
Queue
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());
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.