A public method for drawing the BSTSet trees will be provided. Although it isn't necessary for applications, it may be useful for debugging.
For example,
BSTSet s = BSTSet.fromString("40 60 70 50 20 10 30 35"); s.drawTree(); StdDraw.show();
A public method for drawing the BSTSet trees will be provided. Although it isn't necessary for applications, it may be useful for debugging.
For example,
BSTSet s = BSTSet.fromString("40 60 70 50 20 10 30 35"); s.drawTree(); StdDraw.show();