# How to Think Like a Computer Scientist - Exercise Solutions

My solutions to the exercises presented in Allen Downey's textbook - **How to Think Like a Computer Scientist, Java version 4.1**.

## Synopsis

_How to Think Like a Computer Scientist_ is an excellent introductory computer science textbook by [**Allen Downey**](http://www.allendowney.com/wp/). Although intitially written for Java, it has since been converted to multiple languages, including C, C++, and Python. The later Java versions have been renamed to _Think Java_. This project contains solutions for the version 4.1 of the book.

The code in this project was written over a span of 3 years, from 2011 to 2014, as part of school assignments. It is presented here unchanged, in its initial form. Development was done via gedit (chapters 1 - 9) and BlueJ (chapters 10 - 18). The exercise solutions for each chapter are in a file named either `ExerciseAnswers` or `README.txt`, with other files providing the Java code.

**Textbook Version issue**: The version of _How to Think Like a Computer Scientist_ available in this repository, is 4.0 - I can't find a softcopy of version 4.1. The differences between the two versions are minor, and can be ignored for the purposes of this repository. That being said however, if you wish to contribute the correct version of the book, please feel free to do so by submitting a pull request, or by [contacting me](#contact).

## Set Up

The programs can all be executed via BlueJ or the Terminal. Follow the instructions in the relevant `ExerciseAnswers` / `README.txt` for detailed instructions.

## Documentation

Since this project consists of exercise solutions, the problem sets themselves act as documentaion. The problems solved are all from the end of chapter exercises in the textbook.

## Contact

If you have any questions, suggestions, or feedback, please feel free to write to [kaivalyaraw@gmail.com](mailto:kaivalyaraw@gmail.com). I look forward to hearing from you.

## License

**This project is released under and protected by the MIT License**

_Copyright © 2016 Kaivalya Rawal_

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
