On Sat, May 25, 2013 at 4:05 PM, <lokeshkopp...@gmail.com> wrote: > ya steven i had done the similar logic but thats not satisfying my professor > he had given the following constrains > 1. No in-built functions should be used > 2. we are expecting a O(n) solution > 3. Don't use count method
And now you finally admit that it's homework. Solve it yourself, or go to your prof and say that you need help. ChrisA -- http://mail.python.org/mailman/listinfo/python-list