CPSC 220
Fall 2007
HW 2: More Review
- Re-do problems 3c, 3d, 3e, and 3f from HW 1.  Be sure you are comfortable
with both your exact and your big-O answers.
 
- Write Java code to add an element x to the end of a linked list. 
Assume that class LinearNode is defined as on page 128 and that 
LinearNode variable front refers to the front of
the list.
  
 
- L&C Exercise 10.5.  
 
- 
Simplify each expression below as much as possible:
- (3x)(3y)
- (3x)y
- (3x)(9y)
- log(xy)
- log(xy)
- log2(8n2)
- log2(10n/4)