Hi guys,
   Here is one question related to algorithm.
Details here:

here is input sequence like a1,a2,...,an,b1,b2,...,bn ,the ax and bx always 
exist in pair. So, now, how to change the sequence to a1,b1,...,an,bn, with 
time complexity as O(n) and space as O(1).

Any comments will be appreciated.
Thanks.
Wesley
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to