Recitation R3 - Stacks and Recursion
Fall 2014

CS200: Introduction to Algorithms


The goals of this lab are as follows:

Palindrome Implementation

  1. Create Project R3 in eclipse and put Palindrome.java and Stack.java in the src directory of your project folder.
  2. Your TA will go over both of these Classes.
  3. Implement the Pop, Peek and Push methods of Stack.java (Remember a Stack is First in Last out).
  4. Modify Palindrome.java to use Stack.java as opposed to recursion in order to produce palindromes.

Work on P1 or The First Written Homework

After Completing the Palindrome implementation you may work on P1 or the first written homework.
© 2014 CS200 Colorado State University. All Rights Reserved.