For example xxx wxxx xxxzzz dxxxdd dwxxxzzzdd

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "], ["Green Eggs and Ham"]] • fill_boxes(["Fox in Socks", "Cat in the Hat", "Hop on Pop", "Green Eggs and Ham"], 8) => [["Fox in Socks", "Cat in the Hat", "Hop on Pop", "Green Eggs and Ham"]] 1 CS 116 Fall 2012 Assignment 07 Due at 4:00pm Monday, November 12 2. A wacky word is defined (recursively) as: • "XXX" is a wacky word • If s is a wacky word, so is "W" + s • If s is a wacky word, so is s + "ZZZ" • If s is a wacky word, so is "D" + s + "DD" No other strings are wacky words. For example, "XXX", "WXXX", "XXXZZZ", "DXXXDD", "DWXXXZZZDD", are all wack...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online