Me again
if (integers[i] == maxval)
{
count++;
int[] oldindicies = indices;
indices = new int[count];
oldindicies.CopyTo(indices, 0);
indices[count - 1] = i;
Debug.WriteLine(string.Format("duplicate maxima found at element index {0}.", i));
i am only confused with this line: indices[count - 1] = i;
why we use [count-1]?
Thanks in advance