Thursday, October 16, 2014

#codingexercise

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

Return -1;

}

No comments:

Post a Comment