0

Hello. I have to design 2 classes that use a binary search tree for storing some orders for some products. I've researched on the Internet about BST implementations in Java, and I've found TreeSet. Do you have any other suggestions? Thank you:)

3
Contributors
2
Replies
40
Views
4 Years
Discussion Span
Last Post by cmps
0

Okay the 2 classes are Node and BST
PSEUDOCODE:

class Node has
value of type integer
left and right node of type Node

class BST has
root of type Node
Insert method using recursion (prefered recursion)
Find method using recursion (remember it's a tree, so recursion should be your friend now)

For any implementation help feel free to ask, but you have to try it by yourself first as the rules of this forum requires :) Good Luck

Edited by cmps

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.