COM 1100 Professor Fell Quiz 5B Solution
Problem 1.
reversed
in order
Problem 2.
3
4
4
Problem 3. 
int LogCeil(int N){
	// Assume N > 0 so K >= 0
	// P = 2^K
	int K, P;
	for(K = 0, P = 1; P < N; K++, P *= 2);
	return K;
}
Problem 4. 
bool Between(int X, int Y){
	return (Y < X) and (X < 2*Y);
}
Last Updated:  November 11, 1997  8:09 am by
Harriet Fell 
College of Computer Science, Northeastern University 
360 Huntington Avenue #161CN,  
Boston, MA 02115     
 
Internet:  fell@ccs.neu.edu   
                     
Phone: (617) 373-2198 / Fax:   (617) 373-5121 
The URL for this document is:
http://www.ccs.neu.edu/home/fell/COM1100/QUIZ/Q5BSolution.html