Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

How would you implement merge sort in Python?

OpenStudy (anonymous):

It doesn't mutate the list passed to it :(

OpenStudy (anonymous):

how would you do it?

OpenStudy (anonymous):

http://ideone.com/dkTA4

OpenStudy (anonymous):

I'm sure there's a more Pythonic way of doing it.... :-P

OpenStudy (anonymous):

pythonic way is not using +1, because ++ not available

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!