Skip to content
All of the exercises (and their solutions!) from the Berkeley textbook Simply Scheme.
Find file
Latest commit 96631da May 6, 2013 @buntine Merge pull request #4 from sunilkukde/patch-1
Update 17-12.scm
Failed to load latest commit information.
03-expressions Chapter 3 complete Dec 18, 2009
04-defining-your-own-procedures Finished chapter 4 Dec 20, 2009
05-words-and-sentences Completed chapter 5 Dec 21, 2009
06-true-and-false Finished exercise 12.13. Pretty horrid, actually Dec 28, 2009
07-variables Forgot 7.1. Now chapter seven is complete Dec 23, 2009
08-higher-order-functions Finished chapter 11 and started chapter 12 Dec 26, 2009
09-lambda Finished chapter 9 Dec 24, 2009
10-example_tic-tac-toe Cleaned up 10.1 and 10.2 Jan 25, 2010
11-introduction-to-recursion Finished chapter 11 and started chapter 12 Dec 26, 2009
12-the-leap-of-faith A few updates to 12.13 Dec 28, 2009
13-how-recursion-works Finished the couple of doable exercises in chapter 13 Dec 28, 2009
14-common-patterns-in-recursive-procedures Finished chapter 14 Jan 8, 2010
15-advanced-recursion Finished chapter 15 Jan 11, 2010
17-lists Update 17-12.scm May 2, 2013
18-trees Merge pull request #2 from sanjeevs/patch-2 Apr 1, 2012
19-implementing-higher-order-functions Finished chapter 19 exercises (skipping one) Jan 23, 2010
20-input-and-output Finished chapter 20 exercises Jan 26, 2010
21-example_the-functions-program Finished chapter 21 Jan 30, 2010
22-files Finished 22-8 and all of the chapter. Woohoo. Feb 1, 2010
23-vectors Finished exercise 23.15, arbitrary dimension arrays Feb 9, 2010
project_scoring-bridge-hands Some small formatting Dec 25, 2009
project_spelling-names-of-huge-numbers Added support for zero in second project Jan 10, 2010
.gitignore Added gitignore file Dec 20, 2009
README Updated README Oct 3, 2010
TODO Updated TODO Jan 11, 2010



NOTE: It would be cool to see other peoples solutions to these problems! ;)

This project contains my solutions to the exercises and projects
presented at the end of each chapter in the textbook Simply Scheme
(Brian Harvey and Matthew Wright, 2nd ed, MIT 1999).

The book is freely available here:

I have omitted the first two chapters as they are very basic
and contain little or no actual code. Also, on most chapters,
there is a section called "Boring exercises" and a section
called "Real exercises". I've omitted all boring exercises
because their solutions contain no actual code and they are...
well... boring.

The code samples throughout the book use a slightly modified
implementation of Scheme (syntactically LISP, but with some
additional primitive procedures). To get this augmentation
working correctly in Dr. Scheme, you must choose "Pretty Big"
from the languages menu and then install the extensions via
the REPL:

> (require (planet dyoo/simply-scheme:1:2/simply-scheme))

I try to only use concepts and procedures that have been introduced
when answering questions (e.g I don't use recursion before it's been
discussed, nor do I use variables -- other than the lambda shorthand
notation -- until chapter 7).

For the record, I recommend this particular book for anyone who:

0) wants to (re)learn LISP and/or functional programming;
1) finds SiCP difficult to digest (hint: read SS and then SiCP)
2) is looking for a good introduction to programming

The text is available for free in PDF format. It's distributed under
the GNU General Public License. I place all of my solutions and original
work on this project in the public domain.
Something went wrong with that request. Please try again.