views:

190

answers:

3

is there any condition in which merge sort can be done without extra memory my prof said it has and he will give bonus point on that.

+1  A: 

Given that this is a homework question, I can only point you to The Art of Computer Programming. A good programmer should be able to use the standard references in our field to research a question such as this.

joel.neely
+1  A: 

You want to google in place merge sort.

Here is one of the result : http://thomas.baudel.name/Visualisation/VisuTri/inplacestablesort.html

+2  A: 

Yes, the answer to this is to use in-place merge sort