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

outdated

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
0
points
117
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

License

unknown (license)

More

Packages that depend on binary_tree