Courses‎ > ‎AP Computer Science 2‎ > ‎Konstantinovich‎ > ‎

2017-05-08 HW14

posted May 8, 2017, 8:58 AM by Samuel Konstantinovich   [ updated May 8, 2017, 9:07 AM ]
github:

14/
  RunningMedian.java
  MyHeap.java  (copy from old assignment and change to a heap of Integers)

constructor:
   RunningMedian()  - make an empty running median.

public methods:
  void add(int) - insert the value into the heap.
  double getMedian()  - return the median (do not remove anything)



Exam Friday:
  multiple choice only
  general java stuff (studied already for the AP)
  Stacks, Queues, Trees, Heaps  
Comments