• Stars
    star
    314
  • Rank 133,353 (Top 3 %)
  • Language
    JavaScript
  • Created over 7 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿฅ‹ Codewars katas ark

Codewars Katas

Solutions for Codewars katas

Table of Contents

Introduction

Solutions with tests, tips and tutorials for Codewars katas. Almost every kata has a long solution and a shorter one, IMHO a long descriptive solution it's preferred over a cryptic one-liner, unless it's understandable for your entire team.

Disclaimer

  • Codewarriors are strongly encouraged not to look at your solutions to Kata until they have completed it themselves or at least took the time to think about their own approaches
  • Codewarriors should not submit your solutions as their own
  • You will not be accepting contributions of any form to this repo
  • Creating a repository like this is discouraged by Codewars

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.x, Node.js v8.x and Node.js v10.x

Purpose

Practicing katas could help you to improve your algorithmic thinking. It could also help at interviews being more confident and learning a few tricks of your preferred 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 an 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 its own title "Drying Potatoes".

Test your Might

If you want to test in watch mode uncommitted files

> npm run test-watch

Performance tests

Check Perflink if you want to compare performance between long and short solutions.

Development Dependencies

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

Tips & Tricks

  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

Learning Resources

More Helpful Resources

Similar Plattforms

Contributors

Feel free to open issues or send PRs

License

MIT ยฉ Leonardo Galante

More Repositories

1

courses-list

๐Ÿ‘จโ€๐ŸŽ“ A list of web dev courses
97
star
2

archillect-api

||| Archillect Unofficial API
JavaScript
34
star
3

solutils

React Hooks and Helpers for Solana
TypeScript
31
star
4

mas-vendidos

โฌ‡๏ธ Sorts MercadoLibre items by most selled
JavaScript
27
star
5

faucy

๐Ÿšฐ Get ethers from any testnet easily
JavaScript
10
star
6

solana-roadmap

๐ŸŒž Solana curated resources
7
star
7

tools-configuration

๐Ÿ›  My personal configuration files
Shell
7
star
8

prettier-rator

๐Ÿ”จ CLI to generate a Prettier file config for your editor
JavaScript
6
star
9

pedidosya-scrapper

Scrappea todos los restaurantes de Buenos Aires
JavaScript
5
star
10

cinemark-app

JavaScript
5
star
11

postal-code

๐Ÿ“ฌ Get your postal code instantly from your position
JavaScript
5
star
12

minecraft-node

๐Ÿน Small script to launch a Minecraft server easily!
JavaScript
4
star
13

react-query-talk

JavaScript
3
star
14

cinemark-api-wrapper

JavaScript
3
star
15

buscala.tv-extension

Extensiรณn de Chrome: ยฟDรณnde miro la serie o pelรญcula? Selecciona el texto de tu pelรญcula o serie y te buscamos en quรฉ servicios de Streaming podes verla.
TypeScript
3
star
16

which-icon-is-that

๐Ÿง Missing tool for SVG icons
TypeScript
3
star
17

fast-dns

Enjoy a fast and more secure internet.
JavaScript
2
star
18

solana-bulk-swapper

Swap many coins fast!
TypeScript
2
star
19

adventjs-2022

Solutions for AdventJS 2022 - https://adventjs.dev
TypeScript
2
star
20

regex-share

ยฎ๏ธ Share your RegEx online from your VSCode
TypeScript
2
star
21

youtube

YouTube channel code resolutions
JavaScript
2
star
22

plataforma5-frontend-avanzado

TypeScript
2
star
23

wifi-qr

JavaScript
2
star
24

portfolio

Astro
1
star
25

gde-app

JavaScript
1
star
26

codewars-progress

Check my total progress on Codewars
JavaScript
1
star
27

password-generator-new

TypeScript
1
star
28

breakgenda

TypeScript
1
star
29

bigg-training

JavaScript
1
star
30

bun-starter-project

A lightweight and barebones Bun starter project with quality defaults
TypeScript
1
star
31

lndgalante.github.io

๐Ÿ’ผ My personal site
Astro
1
star
32

events-assisted

๐Ÿ‘จโ€๐Ÿซ A list of conferences, hackathons and meetups I assisted
1
star
33

glide-challenge

JavaScript
1
star