1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
public class AlphaMap implements Map<Integer, String> {
 
  private class Node {
    /* TODO
     * What goes in your node depends on what kind of
     * balanced search tree you choose to implement!
     */
  }
 
  /* TODO
   * You probably want some fields here.
   * How about a root node?
   * How about an int for the current size?
   */
 
  public AlphaMap() {
    // constructor
  }
 
  @Override
  public int size() {
    // TODO
  }
 
  @Override
  public String get(Integer key) {
    // TODO
  }
 
  @Override
  public void set(Integer key, String value) {
    // TODO
  }
}