You may discuss this assignment with other students in the class, or other persons. But you must actually write the assignment in your own hand. You must turn in the homework on letter-sized paper, with your name at the top of each page. Use pen or pencil, any color.
Do not write your homework as a computer file and turn in a printout.
Modify the pseudocode so that the recursion stack is never deeper than lg(n), and explain why that works. (The running time could still be quadratic even with your modification, though.)