/algorithmDesign

Collection of completed toy problems

Primary LanguageJavaScript

Algorithm design with ToyProblems

My solutions for toy problem algorithms written in Javascript for the Browser.

Requirements

This suite requires node.

Installation

Either fork this repo, or just download the latest release directly. Open a terminal window, and cd into the toyproblems directory. Run: yarn install or npm install Duplicate the _template directory and rename to whatever your first problem is. Write your tests in the spec.js file. Write (or copy and paste) your algorithm in the src.js file. Run SpecRunner.html Enjoy some TDD!! :)

Contributing

This repo is a showcase for my own solutions to these problems. However, you are welcome to fork/clone this repo, delete my code, and use this testing system for yourself. While I have many other toy problems that simply aren't listed here yet, if you have one that you don't see, I'd love to hear about it!

Credits

Inspired by the great work of Phillip Alexander and Cody Daig

License

(The MIT License)

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.