title: how to calculate the mode of an unsorted array of integers in O(N)?
body: <p>...using an iterative procedure (no hash table)?</p>
  
  <p>It's not homework. And by mode I mean the most frequent number (statistical mode). I don't want to use a hash table because I want to know how it can be done iteratively.</p>