Skip to content
πŸ₯‹ Codewars katas ark
Branch: master
Clone or download
Latest commit 5c572ca Mar 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
5-kyu Bump dependencies Oct 24, 2018
6-kyu Bump dependencies Oct 24, 2018
7-kyu
8-kyu Add new katas Feb 17, 2019
lib Update index Mar 5, 2019
.gitignore
README.md Improve readme Mar 8, 2019
package.json Bump dependencies Mar 13, 2019

README.md

Codewars Katas

Solutions with tests, tips and tutorials for Codewars katas

Vocabulary

  • Kata: is an algorithm you have to solve in any programming language you desire

  • Kyu: is a digit that determines kata difficulty level as well as the user rank on the platform

Node.js & ES6+ Support

The current Node versions available are the following Node.js v6.11.0 and Node.js v8.1.3

Purpose

Practicing katas could help you to improve your algorithmic thinking. It could also help going to interviews more confident and learning a few tricks of your prefered language. I highly recommend the Tech Interview Handbook which will help you ace your next technical interview.

Repository Structure

There's a folder for each kata nested in its own kyu

β”œβ”€β”€ 8-kyu/
β”‚   β”œβ”€β”€ Mr. Freeze/
β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   β”‚   └── index.test.js
β”‚   └── ...
β”‚
β”œβ”€β”€ 7-kyu/
β”‚   β”œβ”€β”€ Binary Addition/
β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   β”‚   └── index.test.js
β”‚   └── ...

Global Index

This index will help you find all katas ordered alphabetically with a link to the kata folder.

Notes:

  • βœ… All completed
  • 🚧 Work in progress
  • ⏸️ Paused until last WIP is completed

To update the global index run

> npm run update-index

Create a new Kata

Since the kata generator uses some dependencies so you should install those first

> npm run install-generator-deps

To generate a new folder with a index.js and index.test.js run

> npm run create-kata [kata link]

In example

> npm run create-kata https://www.codewars.com/kata/drying-potatoes/train/javascript

Since this is a 7-kyu kata it will appear under this folder as a folder with it's own title "Drying Potatoes".

Test your Might

If you want to test in watch mode uncommitted files

> npm run test-watch

Development Dependencies

I also use Quokka Pro Edition for rapid prototyping. Also I recommend you Quokka Pro that has Live Comments.

Learning Resources

Tips

  1. Katas has tags that could help you in advance to know what to use. For example you could solve this kata using regular expressions.

    Codewars tags

  1. Katas could have some issues that goes beyond your implementation. If you're stuck check the Issues. Just click where it says 1 Issue Reported above the Instructions.

    Codewars issues

  1. Finally check the discussions in case the Instructions aren't really clear. Click on the Discuss button under the Sample Tests.

    Codewars issues

  1. After you submit your final solution check the Solutions to learn from other alternatives. If you don't understand them you can leave a comment or check the discussions of each one. Try to learn from these solutions and improve your current one or create a Short Solution of your own.
  1. If you check my solutions the "Long Solution" maybe is longer than the "Short Solution" but is more readable.
  1. If you want to check what solution is faster use jsPerf or JSBench

More Helpful Resources

Similar Plattforms

Contributors

Feel free to open issues or send PRs

License

MIT Β© Leonardo Galante

You can’t perform that action at this time.