#codingexercise
Int LastindexOf(int [] v, Int i)
{
Int ret = -1;
If (v!= null)
For ( Int u = v.length-1; u>= 0; u--)
If (v[u] == i)
Return u;
Return ret;
}
Int LastindexOf(int [] v, Int i)
{
Int ret = -1;
If (v!= null)
For ( Int u = v.length-1; u>= 0; u--)
If (v[u] == i)
Return u;
Return ret;
}
No comments:
Post a Comment