Friday, October 17, 2014

#codingexercise

Int  getcountmatch (list <int> v, Int i)
{
If (v == null) return -1;
Int count = 0;
For ( Int k=0; k < v.length;  k++)
      If (v [k ] == i) count++;

Return count;

}

No comments:

Post a Comment