Skip to content

My solutions for CODEWARS: A collection of TDD katas (simple programs) written in JavaScript, Python, and more to learn and have fun!

License

Notifications You must be signed in to change notification settings

a-merezhanyi/codewars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codewars' Kata

Disclaimer

  • Codewarriors are strongly encouraged not to look at my 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 these solutions as their own
  • I will not be accepting contributions of any form to this repo
  • Creating a repository like this is discouraged by Codewars

Please be noticed, that violating Codewars ToS might lead to the termitation of your Codewars' account.

My solutions for Codewars' Kata https://www.codewars.com

A collection of TDD katas (simple programs) written in JavaScript, Python, Rust, and more to learn and have fun!

JavaScript Video Tutorials playlist: Codewars' katas solved

3 kyu Katas (2 -> 5)

(3 kyu) Base64 Encoding (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(3 kyu) The soul of wit - reverse an array (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]

4 kyu Katas (8)

(4 kyu) Decode the Morse code, advanced (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) Human readable duration format (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) IP Validation (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) Range Extraction (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) Reverse it, quickly (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) Snail (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) Strip Comments (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(4 kyu) Sum Strings as Numbers (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]

5 kyu Katas (7 -> 13)

(5 kyu) Calculating with Functions (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(5 kyu) Count IP Addresses (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(5 kyu) Fibonacci Generator (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(5 kyu) Human Readable Time (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(5 kyu) Memoized Fibonacci (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(5 kyu) Ninety Nine Thousand Nine Hundred Ninety Nine (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]

(5 kyu) RGB To Hex Conversion (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]

6 kyu Katas (16 -> 21)

(6 kyu) CamelCase Method (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Multiples of 3 or 5 (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Decode the Morse code (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Easy Balance Checking (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Fibonacci Generator Function (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Find the odd int (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Follow that Spy (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Hard Time Bomb (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Help the bookseller (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) IQ Test (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Playing with digits (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Playing with passphrases (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Reverse or rotate? (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Salesman's Travel (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]
(6 kyu) Square Digits Sequence (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go]

7 kyu Katas (27 -> 34)

(7 kyu) All Inclusive? (Description + [JS Video Tutorial]) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Build a square (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Canvas Fun 1 - Draw Lines (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Complementary DNA (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Even numbers in an array (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Exes and Ohs (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Form The Largest (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Form The Minimum (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Frequency sequence (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Get the Middle Character (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Highest and Lowest (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Jaden Casing Strings (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Last (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Mumbling (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Number of People in the Bus (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Parts of a list (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Recursion #2 - Fibonacci (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Remove duplicate words (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Reverse words (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Shortest Word (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Simple beads count (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Sort Numbers (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Speed Control (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) String ends with (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Sum of odd numbers (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Thinkful - String Drills. Repeater (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(7 kyu) Two to One (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]

8 kyu Katas (55 -> 55)

(8 kyu) Abbreviate a Two Word Name (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) altERnaTIng cAsE = ALTerNAtiNG CaSe (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Area or Perimeter (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] [Java] / [Go] / [Dart]
(8 kyu) Basic subclasses - Adam and Eve (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Beginner - Lost Without a Map (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Bin to Decimal (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Century From Year (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Convert a Boolean to a String (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Convert number to reversed array of digits (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Convert a String to a Number! (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Convert a string to an array (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Convert boolean values to strings 'Yes' or 'No'. (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Count Odd Numbers below n (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Count of positives - sum of negatives (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Counting sheep (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Difference of Volumes of Cuboids (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) DNA to RNA Conversion (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Even or Odd (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Fake Binary (Description + [JS Video Tutorial]) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Find the smallest integer in the array (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Function 3 - multiplying two numbers (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) I love you, a little , a lot, passionately ... not at all (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) If you can't sleep, just count sheep (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Is n divisible by x and y? (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Is the string uppercase? (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Jenny's secret message (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) MakeUpperCase (Description + [JS Video Tutorial]) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Multiply (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / Java] / [Go] / [Dart]
(8 kyu) Name Shuffler (Description + [JS Video Tutorial]) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Opposite number (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Opposites Attract (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Parse nice int from char problem (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Plural (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Powers of 2 (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Remove First and Last Character (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Remove String Spaces (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Return Negative (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Returning Strings (Description + [JS Video Tutorial]) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Reversed sequence (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Reversed Strings (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Reversed Words (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Rock Paper Scissors (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Sort and Star (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Square(n) Sum (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [С++] / [С#] / [Java] / [Go] / [Dart]
(8 kyu) String cleaning (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) String repeat (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Sum of positive (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) The Feast of Many Beasts (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) To square(root) or not to square(root) (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Total amount of points (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Twice as old (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Volume of a Cuboid (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) Well of Ideas - Easy Version (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) What is between (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]
(8 kyu) You Can't Code Under Pressure #1 (Description + JS Video Tutorial) : [JavaScript] / [TypeScript] / [Python] / [Rust] / [C++] / [C#] / [Java] / [Go] / [Dart]