1. 8
  1.  

  2. 1

    This is a great example why classes in algorithms and data structures pay off.