Friday, May 13, 2011

A trivial one, re-arrange the array

I was used to ask this in the past, now no longer. If  [a1,a2,a3...,an,b1,b2...bn] is given input change this to
[a1,b1,a2,b2.....an,bn]

No comments:

Post a Comment