binary_tree 1.0.6 copy "binary_tree: ^1.0.6" to clipboard
binary_tree: ^1.0.6 copied to clipboard

Self-Balancing Binary Search Tree for Dart. BST is implemented as Iterable. There are many operations such as greaterThen, lessThenOrEqual (create sublist), max , min etc.

example/binary_tree_example.dart

import 'package:binary_tree/binary_tree.dart';

void main() {
  var b = BinaryTree([10, 8, 16, 4, 9, 13, 25, 2, 6, 12, 14, 18]);

  b.insert(26);
  b.insert(27);
  b.remove(27);

  print(b.toListFrom(8, equal: false, greaterThan: true));

  return;
}
26
likes
160
points
115
downloads

Publisher

verified publisherstyledart.dev

Weekly Downloads

Self-Balancing Binary Search Tree for Dart. BST is implemented as Iterable. There are many operations such as greaterThen, lessThenOrEqual (create sublist), max , min etc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

More

Packages that depend on binary_tree