Practice algorithms. Solutions are in solutions.js
- Fork and clone down Broadstrokes/algopractice
- Make sure you've node and bower installed
- To install bower: npm install -g bower
- cd into the root folder of your cloned repo and run
bower install
- Complete prompt(s) in the algorithms.js
- Run tests
- Attempt these problems without using solutions.js first!
- Pseudo-code how you will approach the problem
- If you cannot figure out what the prompt is asking, look at the test cases
- If that still doesn't help message me on slack
- If you've spent 30 minutes on a problem, to prevent frustration,
move on to the next problem. Come back to it later. Research the problem.
- Look at the solution
To run all uncommented prompts, from inside the root folder run the command:
open index.html
In order to stay updated add this repo as the remote upstream.
git remote add upstream https://github.com/Broadstrokes/algopractice.git
To check if the remote has been added run the following:
git remote -v
To pull updates run the following command from the root:
git pull upstream master
- Report bugs using GitHub Issues.
- Access the issues for algopractice via its repo page, at the top next to the "Pull Requests" tab.
- Make sure to add the
Bug
label to your issue.
- To contribute make a GitHub Issue with the
Enhancement
label on it. - Clearly explain your contribution
- To make a pull request, from your fork page select "Pull Requests" and then create a New pull request. After creating the pull finalize by clicking Send pull request.