Skip to content
Prev 133866 / 398498 Next

For Loop performance

WRT:  Say length(V1) is n, do you want to compare
v1[1] with (v2[1] and v2[2])
v1[2] with (v2[3] and v2[4])
v1[3] with (v2[5] and v2[6])
....
...
v1[n] with (v2[n+1] and v2[n+2])

I hope this is clear (I think I was wrong in the snippet of code earlier).
 Thanks in advance.

--MyC