二叉搜索树 get方法实现 public class BSTTree{ BSTNode root; static class BSTNode{ int key; object value; BSTNode left; BSTNode right; public BSTNode(int key, object value) { this.key = key; this.vlaue = value; } public BSTNode(int key, object value, BSTNode left, BSTNode right) { this.key = key; this.vlaue = value; this.left = left; this.right = right; } } public Object get(int key) { return doGet(root, key); } private Object doGet(BSTNode node, int key) { if (node == null) { return null; } if...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile