Data Structures

PA 03

Using a Stack


Due by Wednesday, October 7th at the start of class

Deadline extended until Friday, October 9th

[Code and paperwork due at the start of class]


Part A: Checking for a palindrome

Part B : Validating html

Hints about solving this:

Bonus

TECHNICALLY, the content within tags could contain "<" and ">"  For example, the following would be valid HTML

<A> <B>  2<3   </B>  <A>

For the basic assignment you may assume that "<" and ">" are ONLY used in tag definition.  For the bonus points, you should allow Strings such as that given above.  The one restriction that we will put on this is that "<" and ">" will not appear in the SAME block of content. 

Submitting your assignment

To get full credit for this assignment you must: