zrwusa / data-structure-typed

Javascript Data Structure & TypeScript Data Structure. Heap, Binary Tree, Red Black Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree, AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack.
https://data-structure-typed-docs.vercel.app
MIT License
114 stars 8 forks source link

When BinaryTree's structure is specific, the print function has an error #43

Closed zrwusa closed 9 months ago

zrwusa commented 10 months ago

Describe the bug When BinaryTree's structure is malicious, the print function has an error

To Reproduce Steps to reproduce the behavior:

  1. tree.addMany([1, null, 2, null, 3, null, 4, null, 5, null, 6, null]);
  2. tree.print()
  3. See error
zrwusa commented 9 months ago

This issue has been resolved in version 1.46.6