Quote (ROM @ May 19 2017 03:17am)
(Pseudo code)
ArrayOfNum{...};
InstancesOfNum {...};
Variable x, y= 0; // variables to count on
For ( x < length of ArrayOfNum)
{
For ( y < length of ArrayOfNum)
{
If (ArrayOfNum(x) equals ArrayOfNum(y)
{
InstancesOfNum(x)++;
}
}
}
tried this but It couldn't fully worked. I figured it out but this code right here lead me through it.