269270271272273274275276277278279
int maxCount = 0; TLongIntIterator iter = counts.iterator(); long maxIndex = 0; while (!iter.hasNext()) { iter.advance(); int count = iter.value(); if (count > maxCount) { maxIndex = iter.key(); maxCount = count;
297298299300301302303304305306307
int minCount = Integer.MAX_VALUE; TLongIntIterator iter = counts.iterator(); long minIndex = 0; while (!iter.hasNext()) { iter.advance(); int count = iter.value(); if (count < minCount) { minIndex = iter.key(); minCount = count;