Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/kata-pr-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ jobs:
echo "$DESC"
} > "$BASEDIR/README.md"

- name: Update index
env:
JSON: ${{ steps.kata.outputs.json }}
run: |
RANK=$(echo $JSON | jq -r '.rank.name // "beta"' | sed 's/ /-/g')
base_dir="./kata/$RANK"
for d in "$base_dir"/*/; do
[[ -f "$d/README.md" ]] || { echo "WARN: No README.md in $d" >&2; continue; }
title=$(sed -n '1s/^# \[\(.\)\(.*\)\](.*$/\1\2/p' "$d/README.md")
id=$(sed -n '1s/.*\/\([^"]*\)".*$/\1/p' "$d/README.md")
echo "- [$title]($(basename "$d") \"$id\")"
done > "$base_dir/index.md"

- name: Commit changes
id: git
env:
Expand Down
3 changes: 1 addition & 2 deletions kata/2-kyu/index.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# E
- [Evaluate mathematical expression](evaluate-mathematical-expression)
- [Evaluate mathematical expression](evaluate-mathematical-expression "52a78825cdfc2cfc87000005")
6 changes: 2 additions & 4 deletions kata/3-kyu/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# M
- [Make a spiral](make-a-spiral)
# P
- [Path Finder #3: the Alpinist](path-finder-number-3-the-alpinist)
- [Make a spiral](make-a-spiral "534e01fbbb17187c7e0000c6")
- [Path Finder #3: the Alpinist](path-finder-number-3-the-alpinist "576986639772456f6f00030c")
65 changes: 26 additions & 39 deletions kata/4-kyu/index.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
# A
- [Adding Big Numbers](adding-big-numbers)
# C
- [Catching Car Mileage Numbers](catching-car-mileage-numbers)
- [Codewars style ranking system](codewars-style-ranking-system)
- [Connect Four](connect-four-1)
# D
- [Decode the Morse code, advanced](decode-the-morse-code-advanced)
# E
- [Escaping The Matrix](escaping-the-matrix)
# F
- [Find the unknown digit](find-the-unknown-digit)
# H
- [Human readable duration format](human-readable-duration-format)
# L
- [Last digits of N^2 == N](last-digits-of-n-2-equals-equals-n)
# M
- [Matrix Determinant](matrix-determinant)
- [Most frequently used words in a text](most-frequently-used-words-in-a-text)
# N
- [Next bigger number with the same digits](next-bigger-number-with-the-same-digits)
# P
- [ParseInt() reloaded](parseint-reloaded)
- [Pyramid Slide Down](pyramid-slide-down)
# R
- [Range Extraction](range-extraction)
- [Recover a secret string from random triplets](recover-a-secret-string-from-random-triplets)
- [Roman Numerals Helper](roman-numerals-helper)
# S
- [Snail](snail)
- [So Many Permutations!](so-many-permutations)
- [Strings Mix](strings-mix)
- [Strip Comments](strip-comments)
- [Sum by Factors](sum-by-factors)
- [Sum of Intervals](sum-of-intervals)
- [Sum Strings as Numbers](sum-strings-as-numbers)
# T
- [The observed PIN](the-observed-pin)
- [Twice linear](twice-linear)
- [Adding Big Numbers](adding-big-numbers "525f4206b73515bffb000b21")
- [Catching Car Mileage Numbers](catching-car-mileage-numbers "52c4dd683bfd3b434c000292")
- [Codewars style ranking system](codewars-style-ranking-system "51fda2d95d6efda45e00004e")
- [Connect Four](connect-four-1 "56882731514ec3ec3d000009")
- [Decode the Morse code, advanced](decode-the-morse-code-advanced "54b72c16cd7f5154e9000457")
- [Escaping The Matrix](escaping-the-matrix "5595c56aa6ca910f27000155")
- [Find the unknown digit](find-the-unknown-digit "546d15cebed2e10334000ed9")
- [Human readable duration format](human-readable-duration-format "52742f58faf5485cae000b9a")
- [Last digits of N^2 == N](last-digits-of-n-2-equals-equals-n "584dee06fe9c9aef810001e8")
- [Matrix Determinant](matrix-determinant "52a382ee44408cea2500074c")
- [Most frequently used words in a text](most-frequently-used-words-in-a-text "51e056fe544cf36c410000fb")
- [Next bigger number with the same digits](next-bigger-number-with-the-same-digits "55983863da40caa2c900004e")
- [parseInt() reloaded](parseint-reloaded "525c7c5ab6aecef16e0001a5")
- [Pyramid Slide Down](pyramid-slide-down "551f23362ff852e2ab000037")
- [Range Extraction](range-extraction "51ba717bb08c1cd60f00002f")
- [Recover a secret string from random triplets](recover-a-secret-string-from-random-triplets "53f40dff5f9d31b813000774")
- [Roman Numerals Helper](roman-numerals-helper "51b66044bce5799a7f000003")
- [Snail](snail "521c2db8ddc89b9b7a0000c1")
- [So Many Permutations!](so-many-permutations "5254ca2719453dcc0b00027d")
- [Strings Mix](strings-mix "5629db57620258aa9d000014")
- [Strip Comments](strip-comments "51c8e37cee245da6b40000bd")
- [Sum by Factors](sum-by-factors "54d496788776e49e6b00052f")
- [Sum of Intervals](sum-of-intervals "52b7ed099cdc285c300001cd")
- [Sum Strings as Numbers](sum-strings-as-numbers "5324945e2ece5e1f32000370")
- [The observed PIN](the-observed-pin "5263c6999e0f40dee200059d")
- [Twice linear](twice-linear "5672682212c8ecf83e000050")
114 changes: 48 additions & 66 deletions kata/5-kyu/index.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,48 @@
# A
- [A Man and his Umbrellas](a-man-and-his-umbrellas)
- [A Simple Music Encoder](a-simple-music-encoder)
- [Airport Arrivals/Departures - #1](airport-arrivals-slash-departures-number-1)
# B
- [Best travel](best-travel)
# C
- [Calculate Fibonacci return count of digit occurrences](calculate-fibonacci-return-count-of-digit-occurrences)
- [Can you get the loop ?](can-you-get-the-loop)
- [Common Denominators](common-denominators)
- [Containers](containers)
- [Convert A Hex String To RGB](convert-a-hex-string-to-rgb)
- [Count IP Addresses](count-ip-addresses)
# D
- [Digits](digits)
- [Directions Reduction](directions-reduction)
# F
- [Fibonacci Streaming](fibonacci-streaming)
- [First non-repeating character](first-non-repeating-character)
- [First Variation on Caesar Cipher](first-variation-on-caesar-cipher)
# G
- [Gap in Primes](gap-in-primes)
- [Greed is Good](greed-is-good)
# H
- [Human Readable Time](human-readable-time)
# I
- [Int32 to IPv4](int32-to-ipv4)
- [Integers: Recreation One](integers-recreation-one)
- [Is my friend cheating?](is-my-friend-cheating)
- [Is the King in check ?](is-the-king-in-check)
# J
- [Josephus Permutation](josephus-permutation)
- [Josephus Survivor](josephus-survivor)
# L
- [Land perimeter](land-perimeter)
- [Last digit of a large number](last-digit-of-a-large-number)
- [Let's Play Darts!](lets-play-darts)
# M
- [Maximum Contiguous Sum](maximum-contiguous-sum)
- [Maximum subarray sum](maximum-subarray-sum)
- [Mean Square Error](mean-square-error)
- [Merged String Checker](merged-string-checker)
# N
- [Not very secure](not-very-secure)
- [Number of trailing zeros of N!](number-of-trailing-zeros-of-n)
# O
- [One-Semicolon Fibonacci Stream](one-semicolon-fibonacci-stream)
# P
- [PaginationHelper](paginationhelper)
- [Perimeter of squares in a rectangle](perimeter-of-squares-in-a-rectangle)
- [Pete, the baker](pete-the-baker)
- [Pick peaks](pick-peaks)
- [Primes in numbers](primes-in-numbers)
- [Product of consecutive Fib numbers](product-of-consecutive-fib-numbers)
# R
- [RGB To Hex Conversion](rgb-to-hex-conversion)
- [ROT13](rot13)
# S
- [Scramblies](scramblies)
- [Simple Pig Latin](simple-pig-latin)
- [String incrementer](string-incrementer)
# T
- [Tic-Tac-Toe Checker](tic-tac-toe-checker)
# W
- [Weight for weight](weight-for-weight)
- [What's a Perfect Power anyway?](whats-a-perfect-power-anyway)
- [A Man and his Umbrellas](a-man-and-his-umbrellas "58298e19c983caf4ba000c8d")
- [A Simple Music Encoder](a-simple-music-encoder "58db9545facc51e3db00000a")
- [Airport Arrivals/Departures - #1](airport-arrivals-slash-departures-number-1 "57feb00f08d102352400026e")
- [Best travel](best-travel "55e7280b40e1c4a06d0000aa")
- [Calculate Fibonacci return count of digit occurrences](calculate-fibonacci-return-count-of-digit-occurrences "5779f894ec8832493f00002d")
- [Can you get the loop ?](can-you-get-the-loop "52a89c2ea8ddc5547a000863")
- [Common Denominators](common-denominators "54d7660d2daf68c619000d95")
- [Containers](containers "5b80dea49895f71f3e00002d")
- [Convert A Hex String To RGB](convert-a-hex-string-to-rgb "5282b48bb70058e4c4000fa7")
- [Count IP Addresses](count-ip-addresses "526989a41034285187000de4")
- [Digits](digits "638b042bf418c453377f28ad")
- [Directions Reduction](directions-reduction "550f22f4d758534c1100025a")
- [Fibonacci Streaming](fibonacci-streaming "55695bc4f75bbaea5100016b")
- [First non-repeating character](first-non-repeating-character "52bc74d4ac05d0945d00054e")
- [First Variation on Caesar Cipher](first-variation-on-caesar-cipher "5508249a98b3234f420000fb")
- [Gap in Primes](gap-in-primes "561e9c843a2ef5a40c0000a4")
- [Greed is Good](greed-is-good "5270d0d18625160ada0000e4")
- [Human Readable Time](human-readable-time "52685f7382004e774f0001f7")
- [int32 to IPv4](int32-to-ipv4 "52e88b39ffb6ac53a400022e")
- [Integers: Recreation One](integers-recreation-one "55aa075506463dac6600010d")
- [Is my friend cheating?](is-my-friend-cheating "5547cc7dcad755e480000004")
- [Is the King in check ?](is-the-king-in-check "5e28ae347036fa001a504bbe")
- [Josephus Permutation](josephus-permutation "5550d638a99ddb113e0000a2")
- [Josephus Survivor](josephus-survivor "555624b601231dc7a400017a")
- [Land perimeter](land-perimeter "5839c48f0cf94640a20001d3")
- [Last digit of a large number](last-digit-of-a-large-number "5511b2f550906349a70004e1")
- [Let's Play Darts!](lets-play-darts "5870db16056584eab0000006")
- [Maximum Contiguous Sum](maximum-contiguous-sum "52f4261c95d6bff39a003096")
- [Maximum subarray sum](maximum-subarray-sum "54521e9ec8e60bc4de000d6c")
- [Mean Square Error](mean-square-error "51edd51599a189fe7f000015")
- [Merged String Checker](merged-string-checker "54c9fcad28ec4c6e680011aa")
- [Not very secure](not-very-secure "526dbd6c8c0eb53254000110")
- [Number of trailing zeros of N!](number-of-trailing-zeros-of-n "52f787eb172a8b4ae1000a34")
- [One-Semicolon Fibonacci Stream](one-semicolon-fibonacci-stream "59e625bf3d09a7471d00020e")
- [PaginationHelper](paginationhelper "515bb423de843ea99400000a")
- [Perimeter of squares in a rectangle](perimeter-of-squares-in-a-rectangle "559a28007caad2ac4e000083")
- [Pete, the baker](pete-the-baker "525c65e51bf619685c000059")
- [Pick peaks](pick-peaks "5279f6fe5ab7f447890006a7")
- [Primes in numbers](primes-in-numbers "54d512e62a5e54c96200019e")
- [Product of consecutive Fib numbers](product-of-consecutive-fib-numbers "5541f58a944b85ce6d00006a")
- [RGB To Hex Conversion](rgb-to-hex-conversion "513e08acc600c94f01000001")
- [ROT13](rot13 "52223df9e8f98c7aa7000062")
- [Scramblies](scramblies "55c04b4cc56a697bb0000048")
- [Simple Pig Latin](simple-pig-latin "520b9d2ad5c005041100000f")
- [String incrementer](string-incrementer "54a91a4883a7de5d7800009c")
- [Tic-Tac-Toe Checker](tic-tac-toe-checker "525caa5c1bf619d28c000335")
- [Weight for weight](weight-for-weight "55c6126177c9441a570000cc")
- [What's a Perfect Power anyway?](whats-a-perfect-power-anyway "54d4c8b08776e4ad92000835")
Loading