CSE 131 / 501N (Summer 2014) |
Sedgewick text can be found here
Some of the questions may involve more time than you have in lab. The idea is to stretch some on these problems, so that you will find the quiz and exam questions easier to tackle. The quiz and associated exam problems will resemble the questions you see here, so work to master these and you should have no problem on the quiz or exam.Where there are multiple exercises within a problem, choose one or two and leave the rest for homeowork on your own.
int N = array.length; for (int i=0; i < N; ++i) { array[N-i-1] = array[i] }
86: 1 87-94: 0 95: 1