An open API service indexing awesome lists of open source software.

https://github.com/binary-wizardry/codewars-solutions

Personal Codewars Solutions
https://github.com/binary-wizardry/codewars-solutions

algorithms algorithms-and-data-structures codewars codewars-kata codewars-kata-solution codewars-solutions coding-challenge coding-challenges data-structures python python3 solutions

Last synced: 9 months ago
JSON representation

Personal Codewars Solutions

Awesome Lists containing this project

README

          

![Language](https://img.shields.io/badge/language-Python-blue.svg) 
![Problems Solved](https://img.shields.io/badge/problems%20solved-93-green) 





[Codewars](https://www.codewars.com/) is a platform that helps you learn, train, and improve your coding skills by solving programming tasks of many types and difficulty levels.
You choose how you would like to learn. Do you want to take on increasingly difficult challenges? Maybe you prefer training through repetition and by improving your solutions.
After solving a task, compare your answer with other users and learn from them or help less experienced users by answering their questions.

## Problems

Here are my solutions codewars problems. The solutions have very few comments, because I write them for myself. But in most cases I try to leave a note about the idea of ​​solution or important edge cases.


PS: for the difficulty, 8 kyu is the minimum and 1 kyu is the maximum.

My profile: https://www.codewars.com/users/binary.wizardry

| Problem | Difficulty | Solution Link|
|---------|:----------:|:------------:|
| [The Millionth Fibonacci Kata](https://www.codewars.com/kata/53d40c1e2f13e331fc000c26) | 3 kyu | [Python](Python/3%20kyu/The%20Millionth%20Fibonacci%20Kata.py) |
| [Make a spiral](https://www.codewars.com/kata/534e01fbbb17187c7e0000c6) | 3 kyu | [Python](Python/3%20kyu/Make%20a%20spiral.py) |
| [Sudoku Solver](https://www.codewars.com/kata/5296bc77afba8baa690002d7) | 3 kyu | [Python](Python/3%20kyu/Sudoku%20Solver.py) |
| [Battleship field validator](https://www.codewars.com/kata/52bb6539a4cf1b12d90005b7) | 3 kyu | [Python](Python/3%20kyu/Battleship%20field%20validator.py) |
| [parseInt() reloaded](https://www.codewars.com/kata/525c7c5ab6aecef16e0001a5) | 4 kyu | [Python](Python/4%20kyu/parseInt()%20reloaded.py) |
| [Nesting Structure Comparison](https://www.codewars.com/kata/520446778469526ec0000001) | 4 kyu | [Python](Python/4%20kyu/Nesting%20Structure%20Comparison.py) |
| [Sum by Factors](https://www.codewars.com/kata/54d496788776e49e6b00052f) | 4 kyu | [Python](Python/4%20kyu/Sum%20by%20Factors.py) |
| [Most frequently used words in a text](https://www.codewars.com/kata/51e056fe544cf36c410000fb) | 4 kyu | [Python](Python/4%20kyu/Most%20frequently%20used%20words%20in%20a%20text.py) |
| [Pyramid Slide Down](https://www.codewars.com/kata/551f23362ff852e2ab000037) | 4 kyu | [Python](Python/4%20kyu/Pyramid%20Slide%20Down.py) |
| [Recover a secret string from random triplets](https://www.codewars.com/kata/53f40dff5f9d31b813000774) | 4 kyu | [Python](Python/4%20kyu/Recover%20a%20secret%20string%20from%20random%20triplets.py) |
| [Matrix Determinant](https://www.codewars.com/kata/52a382ee44408cea2500074c) | 4 kyu | [Python](Python/4%20kyu/Matrix%20Determinant.py) |
| [Decode the Morse code, advanced](https://www.codewars.com/kata/54b72c16cd7f5154e9000457) | 4 kyu | [Python](Python/4%20kyu/Decode%20the%20Morse%20code,%20advanced.py) |
| [Twice linear](https://www.codewars.com/kata/5672682212c8ecf83e000050) | 4 kyu | [Python](Python/4%20kyu/Twice%20linear.py) |
| [Roman Numerals Helper](https://www.codewars.com/kata/51b66044bce5799a7f000003) | 4 kyu | [Python](Python/4%20kyu/Roman%20Numerals%20Helper.py) |
| [Strings Mix](https://www.codewars.com/kata/5629db57620258aa9d000014) | 4 kyu | [Python](Python/4%20kyu/Strings%20Mix.py) |
| [Sum Strings as Numbers](https://www.codewars.com/kata/5324945e2ece5e1f32000370) | 4 kyu | [Python](Python/4%20kyu/Sum%20Strings%20as%20Numbers.py) |
| [Sum of Intervals](https://www.codewars.com/kata/52b7ed099cdc285c300001cd) | 4 kyu | [Python](Python/4%20kyu/Sum%20of%20Intervals.py) |
| [So Many Permutations!](https://www.codewars.com/kata/5254ca2719453dcc0b00027d) | 4 kyu | [Python](Python/4%20kyu/So%20Many%20Permutations!.py) |
| [Strip Comments](https://www.codewars.com/kata/51c8e37cee245da6b40000bd) | 4 kyu | [Python](Python/4%20kyu/Strip%20Comments.py) |
| [The observed PIN](https://www.codewars.com/kata/5263c6999e0f40dee200059d) | 4 kyu | [Python](Python/4%20kyu/The%20observed%20PIN.py) |
| [Next bigger number with the same digits](https://www.codewars.com/kata/55983863da40caa2c900004e) | 4 kyu | [Python](Python/4%20kyu/Next%20bigger%20number%20with%20the%20same%20digits.py) |
| [Range Extraction](https://www.codewars.com/kata/51ba717bb08c1cd60f00002f) | 4 kyu | [Python](Python/4%20kyu/Range%20Extraction.py) |
| [Human readable duration format](https://www.codewars.com/kata/52742f58faf5485cae000b9a) | 4 kyu | [Python](Python/4%20kyu/Human%20readable%20duration%20format.py) |
| [Snail](https://www.codewars.com/kata/521c2db8ddc89b9b7a0000c1) | 4 kyu | [Python](Python/4%20kyu/Snail.py) |
| [Primes in numbers](https://www.codewars.com/kata/54d512e62a5e54c96200019e) | 5 kyu | [Python](Python/5%20kyu/Primes%20in%20numbers.py) |
| [Perimeter of squares in a rectangle](https://www.codewars.com/kata/559a28007caad2ac4e000083) | 5 kyu | [Python](Python/5%20kyu/Perimeter%20of%20squares%20in%20a%20rectangle.py) |
| [Number of trailing zeros of N!](https://www.codewars.com/kata/52f787eb172a8b4ae1000a34) | 5 kyu | [Python](Python/5%20kyu/Number%20of%20trailing%20zeros%20of%20N!.py) |
| [Greed is Good](https://www.codewars.com/kata/5270d0d18625160ada0000e4) | 5 kyu | [Python](Python/5%20kyu/Greed%20is%20Good.py) |
| [Scramblies](https://www.codewars.com/kata/55c04b4cc56a697bb0000048) | 5 kyu | [Python](Python/5%20kyu/Scramblies.py) |
| [String incrementer](https://www.codewars.com/kata/54a91a4883a7de5d7800009c) | 5 kyu | [Python](Python/5%20kyu/String%20incrementer.py) |
| [Weight for weight](https://www.codewars.com/kata/55c6126177c9441a570000cc) | 5 kyu | [Python](Python/5%20kyu/Weight%20for%20weight.py) |
| [Extract the domain name from a URL](https://www.codewars.com/kata/514a024011ea4fb54200004b) | 5 kyu | [Python](Python/5%20kyu/Extract%20the%20domain%20name%20from%20a%20URL.py) |
| [First non-repeating character](https://www.codewars.com/kata/52bc74d4ac05d0945d00054e) | 5 kyu | [Python](Python/5%20kyu/First%20non-repeating%20character.py) |
| [Product of consecutive Fib numbers](https://www.codewars.com/kata/5541f58a944b85ce6d00006a) | 5 kyu | [Python](Python/5%20kyu/Product%20of%20consecutive%20Fib%20numbers.py) |
| [Pete, the baker](https://www.codewars.com/kata/525c65e51bf619685c000059) | 5 kyu | [Python](Python/5%20kyu/Pete,%20the%20baker.py) |
| [Maximum subarray sum](https://www.codewars.com/kata/54521e9ec8e60bc4de000d6c) | 5 kyu | [Python](Python/5%20kyu/Maximum%20subarray%20sum.py) |
| [The Hashtag Generator](https://www.codewars.com/kata/52449b062fb80683ec000024) | 5 kyu | [Python](Python/5%20kyu/The%20Hashtag%20Generator.py) |
| [Rot13](https://www.codewars.com/kata/530e15517bc88ac656000716) | 5 kyu | [Python](Python/5%20kyu/Rot13.py) |
| [Calculating with Functions](https://www.codewars.com/kata/525f3eda17c7cd9f9e000b39) | 5 kyu | [Python](Python/5%20kyu/Calculating%20with%20Functions.py) |
| [Directions Reduction](https://www.codewars.com/kata/550f22f4d758534c1100025a) | 5 kyu | [Python](Python/5%20kyu/Directions%20Reduction.py) |
| [RGB To Hex Conversion](https://www.codewars.com/kata/513e08acc600c94f01000001) | 5 kyu | [Python](Python/5%20kyu/RGB%20To%20Hex%20Conversion.py) |
| [Human Readable Time](https://www.codewars.com/kata/52685f7382004e774f0001f7) | 5 kyu | [Python](Python/5%20kyu/Human%20Readable%20Time.py) |
| [Simple Pig Latin](https://www.codewars.com/kata/520b9d2ad5c005041100000f) | 5 kyu | [Python](Python/5%20kyu/Simple%20Pig%20Latin.py) |
| [Moving Zeros To The End](https://www.codewars.com/kata/52597aa56021e91c93000cb0) | 5 kyu | [Python](Python/5%20kyu/Moving%20Zeros%20To%20The%20End.py) |
| [Unique In Order](https://www.codewars.com/kata/54e6533c92449cc251001667) | 6 kyu | [Python](Python/6%20kyu/Unique%20In%20Order.py) |
| [Detect Pangram](https://www.codewars.com/kata/545cedaa9943f7fe7b000048) | 6 kyu | [Python](Python/6%20kyu/Detect%20Pangram.py) |
| [Tribonacci Sequence](https://www.codewars.com/kata/556deca17c58da83c00002db) | 6 kyu | [Python](Python/6%20kyu/Tribonacci%20Sequence.py) |
| [Your order, please](https://www.codewars.com/kata/55c45be3b2079eccff00010f) | 6 kyu | [Python](Python/6%20kyu/Your%20order,%20please.py) |
| [Does my number look big in this?](https://www.codewars.com/kata/5287e858c6b5a9678200083c) | 6 kyu | [Python](Python/6%20kyu/Does%20my%20number%20look%20big%20in%20this%3F.py) |
| [Convert string to camel case](https://www.codewars.com/kata/517abf86da9663f1d2000003) | 6 kyu | [Python](Python/6%20kyu/Convert%20string%20to%20camel%20case.py) |
| [Persistent Bugger](https://www.codewars.com/kata/55bf01e5a717a0d57e0000ec) | 6 kyu | [Python](Python/6%20kyu/Persistent%20Bugger.py) |
| [Replace With Alphabet Position](https://www.codewars.com/kata/546f922b54af40e1e90001da) | 6 kyu | [Python](Python/6%20kyu/Replace%20With%20Alphabet%20Position.py) |
| [Take a Ten Minutes Walk](https://www.codewars.com/kata/54da539698b8a2ad76000228) | 6 kyu | [Python](Python/6%20kyu/Take%20a%20Ten%20Minutes%20Walk.py) |
| [Duplicate Encoder](https://www.codewars.com/kata/54b42f9314d9229fd6000d9c) | 6 kyu | [Python](Python/6%20kyu/Duplicate%20Encoder.py) |
| [Counting Duplicates](https://www.codewars.com/kata/54bf1c2cd5b56cc47f0007a1) | 6 kyu | [Python](Python/6%20kyu/Counting%20Duplicates.py) |
| [Find The Parity Outlier](https://www.codewars.com/kata/5526fc09a1bbd946250002dc) | 6 kyu | [Python](Python/6%20kyu/Find%20The%20Parity%20Outlier.py) |
| [Bit Counting](https://www.codewars.com/kata/526571aae218b8ee490006f4) | 6 kyu | [Python](Python/6%20kyu/Bit%20Counting.py) |
| [Create Phone Number](https://www.codewars.com/kata/525f50e3b73515a6db000b83) | 6 kyu | [Python](Python/6%20kyu/Create%20Phone%20Number.py) |
| [Sum of Digits / Digital Root](https://www.codewars.com/kata/541c8630095125aba6000c00) | 6 kyu | [Python](Python/6%20kyu/Sum%20of%20Digits%20Digital%20Root.py) |
| [Array.diff](https://www.codewars.com/kata/523f5d21c841566fde000009) | 6 kyu | [Python](Python/6%20kyu/Array.diff.py) |
| [Find the odd int](https://www.codewars.com/kata/54da5a58ea159efa38000836) | 6 kyu | [Python](Python/6%20kyu/Find%20the%20odd%20int.py) |
| [Who likes it?](https://www.codewars.com/kata/5266876b8f4bf2da9b000362) | 6 kyu | [Python](Python/6%20kyu/Who%20likes%20it%3F.py) |
| [Stop gninnipS My sdroW!](https://www.codewars.com/kata/5264d2b162488dc400000001) | 6 kyu | [Python](Python/6%20kyu/Stop%20gninnipS%20My%20sdroW!.py) |
| [Multiples of 3 or 5](https://www.codewars.com/kata/514b92a657cdc65150000006) | 6 kyu | [Python](Python/6%20kyu/Multiples%20of%203%20or%205.py) |
| [Two to One](https://www.codewars.com/kata/5656b6906de340bd1b0000ac) | 7 kyu | [Python](Python/7%20kyu/Two%20to%20One.py) |
| [Friend or Foe?](https://www.codewars.com/kata/55b42574ff091733d900002f) | 7 kyu | [Python](Python/7%20kyu/Friend%20or%20Foe%3F.py) |
| [Beginner Series #3 Sum of Numbers](https://www.codewars.com/kata/55f2b110f61eb01779000053) | 7 kyu | [Python](Python/7%20kyu/Beginner%20Series%20%233%20Sum%20of%20Numbers.py) |
| [Sum of two lowest positive integers](https://www.codewars.com/kata/558fc85d8fd1938afb000014) | 7 kyu | [Python](Python/7%20kyu/Sum%20of%20two%20lowest%20positive%20integers.py) |
| [Credit Card Mask](https://www.codewars.com/kata/5412509bd436bd33920011bc) | 7 kyu | [Python](Python/7%20kyu/Credit%20Card%20Mask.py) |
| [Isograms](https://www.codewars.com/kata/54ba84be607a92aa900000f1) | 7 kyu | [Python](Python/7%20kyu/Isograms.py) |
| [Complementary DNA](https://www.codewars.com/kata/554e4a2f232cdd87d9000038) | 7 kyu | [Python](Python/7%20kyu/Complementary%20DNA.py) |
| [Shortest Word](https://www.codewars.com/kata/57cebe1dc6fdc20c57000ac9) | 7 kyu | [Python](Python/7%20kyu/Shortest%20Word.py) |
| [Jaden Casing Strings](https://www.codewars.com/kata/5390bac347d09b7da40006f6) | 7 kyu | [Python](Python/7%20kyu/Jaden%20Casing%20Strings.py) |
| [Exes and Ohs](https://www.codewars.com/kata/55908aad6620c066bc00002a) | 7 kyu | [Python](Python/7%20kyu/Exes%20and%20Ohs.py) |
| [Mumbling](https://www.codewars.com/kata/5667e8f4e3f572a8f2000039) | 7 kyu | [Python](Python/7%20kyu/Mumbling.py) |
| [You're a square!](https://www.codewars.com/kata/54c27a33fb7da0db0100040e) | 7 kyu | [Python](Python/7%20kyu/You're%20a%20square!.py) |
| [Get the Middle Character](https://www.codewars.com/kata/56747fd5cb988479af000028) | 7 kyu | [Python](Python/7%20kyu/Get%20the%20Middle%20Character.py) |
| [List Filtering](https://www.codewars.com/kata/53dbd5315a3c69eed20002dd) | 7 kyu | [Python](Python/7%20kyu/List%20Filtering.py) |
| [Descending Order](https://www.codewars.com/kata/5467e4d82edf8bbf40000155) | 7 kyu | [Python](Python/7%20kyu/Descending%20Order.py) |
| [Highest and Lowest](https://www.codewars.com/kata/554b4ac871d6813a03000035) | 7 kyu | [Python](Python/7%20kyu/Highest%20and%20Lowest.py) |
| [Square Every Digit](https://www.codewars.com/kata/546e2562b03326a88e000020) | 7 kyu | [Python](Python/7%20kyu/Square%20Every%20Digit.py) |
| [Disemvowel Trolls](https://www.codewars.com/kata/52fba66badcd10859f00097e) | 7 kyu | [Python](Python/7%20kyu/Disemvowel%20Trolls.py) |
| [Vowel Count](https://www.codewars.com/kata/54ff3102c1bad923760001f3) | 7 kyu | [Python](Python/7%20kyu/Vowel%20Count.py) |
| [Remove First and Last Character](https://www.codewars.com/kata/56bc28ad5bdaeb48760009b0) | 8 kyu | [Python](Python/8%20kyu/Remove%20First%20and%20Last%20Character.py) |
| [Square(n) Sum](https://www.codewars.com/kata/515e271a311df0350d00000f) | 8 kyu | [Python](Python/8%20kyu/Square(n)%20Sum.py) |
| [Opposite number](https://www.codewars.com/kata/56dec885c54a926dcd001095) | 8 kyu | [Python](Python/8%20kyu/Opposite%20number.py) |
| [Convert boolean values to strings 'Yes' or 'No'](https://www.codewars.com/kata/53369039d7ab3ac506000467) | 8 kyu | [Python](Python/8%20kyu/Convert%20boolean%20values%20to%20strings%20'Yes'%20or%20'No'.py) |
| [Convert a Number to a String](https://www.codewars.com/kata/5265326f5fda8eb1160004c8) | 8 kyu | [Python](Python/8%20kyu/Convert%20a%20Number%20to%20a%20String.py) |
| [Reversed Strings](https://www.codewars.com/kata/5168bb5dfe9a00b126000018) | 8 kyu | [Python](Python/8%20kyu/Reversed%20Strings.py) |
| [Sum of positive](https://www.codewars.com/kata/5715eaedb436cf5606000381) | 8 kyu | [Python](Python/8%20kyu/Sum%20of%20positive.py) |
| [Return Negative](https://www.codewars.com/kata/55685cd7ad70877c23000102) | 8 kyu | [Python](Python/8%20kyu/Return%20Negative.py) |
| [Multiply](https://www.codewars.com/kata/50654ddff44f800200000004) | 8 kyu | [Python](Python/8%20kyu/Multiply.py) |
| [Even or Odd](https://www.codewars.com/kata/53da3dbb4a5168369a0000fe) | 8 kyu | [Python](Python/8%20kyu/Even%20or%20Odd.py) |