1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-10-29 22:17:23 +01:00
Programming exercises and challenges to improve your algorithmic logic.
Go to file
Divlo 905b16289c
Merge pull request #2 from Divlo/Divlo/gitpod-setup
Fully automate dev setup with Gitpod
2020-09-12 23:30:55 +02:00
.github 🎉 Initial commit 2020-07-05 15:48:51 +02:00
challenges docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
scripts docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
temp 🎉 Initial commit 2020-07-05 15:48:51 +02:00
.gitignore Add "camel-case" challenge 2020-07-05 20:09:17 +02:00
.gitpod.yml Fully automate dev setup with Gitpod 2020-09-12 21:02:40 +00:00
package-lock.json docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
package.json docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
README.md docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
tsconfig.json docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00

programming-challenges

Programming exercises and challenges to improve your algorithmic logic.

Gitpod ready-to-code Licence MIT PRs Welcome

programming-challenges Logo

📜 About

programming-challenges brings together lots of programming exercises and challenges to improve your algorithmic logic.

Each challenge has its solutions, its instructions and input/output examples so you can try to solve them on your own. See challenges folder.

Programming languages available

npm run test command will only work with these languages :

  • JavaScript and TypeScript (Node.js >= 12)
  • Python >= 3.8

🚀 Installation & Usage (CLI)

To easily create new challenges instructions, solutions and test your code, I made a CLI tool made with Node.js and TypeScript.

Requirements :

  • Node.js >= 12

Then you need to run npm install in the root folder to install needed packages, you can now use one of these commands :

  • npm run create-challenge

    Create the basic files needed for a new challenge. It will ask you some questions and you will be ready to write the instructions and input-output.json. Please read CONTRIBUTING.md.

  • npm run create-solution

    Create the basic files needed for a new solution for a challenge. It will ask you some questions and you will be ready to write your solution in the available programming languages (see above). If you wish to submit to everyone your solution. Please read CONTRIBUTING.md.

  • npm run test [challenge-name] [solution-name]

    Test if the solution is correct and display where it succeeds and fails with the inputs provided, the output of your function and the expected output.

    Example : npm run test hello-world python-hello

💡 Contributing

Feel free to submit your challenges, your solutions or even a simple spelling mistake.

Everyone can contribute to the improvement of the project! The steps to contribute can be found in the CONTRIBUTING.md file.

📄 License

MIT