javascript binary search tree
1.0.0
إن بنية JavaScript البسيطة البسيطة النقية التي تستخدم عائدات محدثة لإضافة العناصر أو إزالةها.
var tree = new BST ( ) ; // Initialize
tree . add ( value ) ; // Add a new node
tree . remove ( value ) ; // Remove an existing node
tree . print ( ) ; // Print the tree as a text-pyramid in console
tree . min ( ) ; // Find smallest node
tree . max ( ) ; // Find largest node
tree . find ( value ) ; // Find node with given value
tree . destroy ( ) ; // Clears the root ملاحظة: للحفاظ على التباعد أثناء استخدام tree.print() ، سيتم تحويل أي قيمة أكبر من رقمين/أحرف إلى أسطورة تحمل اسم "إلى" z ". سيتم طباعة الملصق والمفتاح بشكل متنافس.
مرخصة بموجب ترخيص GNU العام الإصدار 3.0. إنه مجاني لنسخ واستخدام وتوزيع.