Description
Below are a list of potential duplicate katas that should be tackled upon. I decided to post these here instead of the list so that mods or any PU are not overwhelmed by the amount of content and mixing them up with the older ones which have not been addressed.
If you found any side-note wrong or any broken link, do edit it directly or notify me ~~
Also, if you found any more similar katas, do update it in this list or paste it in a reply ~~
NOTE: this list is not the final conclusion as continuous searching will reveal more similar or exact ones, so feel free to contribute, cheers
Handled
Convert time to words (dedicated issue: #48 )
Multiplication table (dedicated issue: #49 )
Number of inversions (dedicated issue: #50 )
Median (dedicated issue: #51 )
Unique Sum (dedicated issue: #56 )
derivative polynomial (dedicated issue: #57 )
Format array into comma separated sentence (dedicated issue: #58 )
valid braces (dedicated issue: #59 )
String contains another substring (dedicated issue: #61 )
count occurrence of a character in string (dedicated issue: #63)
GCD of two numbers (dedicated issue: #64 )
Rock Paper Scissors Lizard Spock (dedicated issue: #66)
vowel / consonant count (dedicated issue: #70 )
sum array (dedicated issue: #73)
Reorder number to maximum (dedicated issue: #79 )
Reverse every word in a string (dedicated issue: #80 )
Generate chessboard (dedicated issue: #82 )
find next perfect square (Dedicated issue: #100)
Finding anagrams of a word (dedicated issue: #101)
Narcissistic number (dedicated issue: #102)
Determine if two strings are isomorphic of each other (dedicated issue: #104)
camelcase (dedicated issue: #107)
String repeat (dedicated issue: #109)
count characters in string (dedicated issue: #110)
Hanoi record (math) (dedicated issue: #111)
acronym (dedicated issue: #112)
Divisibility (dedicated issue: #113)
Palindrome verification (dedicated issue: #114)
counting number of power sets (dedicated issue: #118 )
Check for factor (dedicated issue: #120)
Exponent comparison (dedicated issue: #122)
Palindrome rearrangement (dedicated issue: #124)
Number of permutation without repetition (dedicated issue: #125)
Day of the week (dedicated issue: #126)
Hamming distance (dedicated issue: #129)
Count Words(dedicated issue: #131 )
Nth biggest / smallest numbers (dedicated issue: #132)
Multiple of 3 or 5 (dedicated issue: #133)
Integer depth before all 10 digits have been counted (dedicated issue: #134)
sum of cubes (dedicated issue: #135)
Remove duplicates from list (dedicated issue: #136)
HTML markups (dedicated issue: #137)
Find most occurrence in array (dedicated issue: #138 )
Filter even/odd numbers (dedicated issue: #139 )
sum of triangular numbers (dedicated issue: #140 )
Array of strings to array of numbers (dedicated issue: #141 )
sum integers in string(dedicated issue: #143 )
Shortest/longest word (dedicated issue: #144 )
partitioning a string to odds & evens indexed (dedicated issue: #146 )
Case swapping (dedicated issue: #147)
sum of vararg list (dedicated issue: #148)
Vowel remover / converter (dedicated issue: #150)
get numbers / non-numerics from string (dedicated issue: #154 )
multiply elements in array(dedicated issue: #155 )
uppercase vowels(dedicated issue: #156 )
Generate array of integers of certain length (dedicated issue: #162 )
add spaces between each characters(dedicated issue: #164 )
euclidean distance(dedicated issue: #165 )
check if left side of an array is equal to right side(dedicated issue: #166 )
sort array / string by last character(dedicated issue: #173 )
Specific number of certain days in year or range of years(dedicated issue: #175 )
find pairs(dedicated issue: #179 )
Pad 0 to front(dedicated issue: #181 )
build a tree pattern(dedicated issue: #182 )
IPV4 validator(dedicated issue: #185 )
calculate grade(dedicated issue: #186 )
string unification(dedicated issue: #187 )
Summation (dedicated issue: #188 )
candles distribution (dedicated issue: #191 )
Password Validation(dedicated issue: #195)
Variable assignment (dedicated issue: #199 )
split string to n parts (dedicated issue: #202 )
Pluck data (dedicated issue: #230 )
In progress
lychrel number (dedicated issue: #52)
- https://www.codewars.com/kata/58d4634b14286c0302000593 (JS only, 7kyu, small input)
- https://www.codewars.com/kata/55e079b1e00f75e1cd00013b (JS only, 6kyu, greater input with up to 261 iteration)
- https://www.codewars.com/kata/52a0f488852a85c723000aca
Factorial length (dedicated issue: #67)
- https://www.codewars.com/kata/59f34ec5a01431ab7600005a (6kyu, 5 languages, does not have fixed tests for 0-4)
- https://www.codewars.com/kata/58fea5baf3dff03a6e000102 (5kyu, 6 languages, more fixed tests on edge cases)
Find first non-repeated characters in the string (dedicated issue: #71)
- https://www.codewars.com/kata/586566b773bd9cbe2b000013 (6 languages, 7kyu, only lowercase letters, non-repeated characters is always found)
- https://www.codewars.com/kata/570f6436b29c708a32000826 (3 languages, 7kyu, only lowercase letters, non-repeated characters are not guaranteed)
- https://www.codewars.com/kata/52bc74d4ac05d0945d00054e (7 languages, 5kyu overranked, upper + lowercase letters with tricky case handling, non-repeated characters are not guaranteed)
count ones in binary (dedicated issue: #75)
- https://www.codewars.com/kata/5519e930cd82ff8a9a000216 (4 languages, 7kyu, tons of issues)
- https://www.codewars.com/kata/526571aae218b8ee490006f4 (many languages, high completion, overranked at 6kyu)
ATM money counter (dedicated issue: #93)
- https://www.codewars.com/kata/5635e7cb49adc7b54500001c (7kyu, 7 languages, output -1 if not possible to decompose)
https://www.codewars.com/kata/57e1857d333d8e0f76002169 (7kyu, 4 languages, output: string format)(not really a duplicate)- https://www.codewars.com/kata/5571f712ddf00b54420000ee (6kyu, 4 languages, output: dictionary of coins)
- https://www.codewars.com/kata/5365bb5d5d0266cd010009be (6kyu, 5 languages, same as above)
- https://www.codewars.com/kata/5966f6343c0702d1dc00004c (7kyu, 4 languages, array of combinations)
- https://www.codewars.com/kata/537ece6953efd95e9e000516 (6kyu, 2 languages, dictionary)
- Added: https://www.codewars.com/kata/58e4d3530e1018e155000058
whether array contains specific value (dedicated issue: #119)
- https://www.codewars.com/kata/57cc975ed542d3148f00015b
- https://www.codewars.com/kata/59bd5dc270a3b7350c00008b
- https://www.codewars.com/kata/545991b4cbae2a5fda000158
- https://www.codewars.com/kata/57cc40b2f8392dbf2a0003ce
sum of digits (dedicated issue: #145 )
- https://www.codewars.com/kata/563d59dd8e47a5ed220000ba (7kyu, 2 languages, bug fixing, input: positive integer)
- https://www.codewars.com/kata/59cf805aaeb28438fe00001c (7kyu, 2 languages, input: string / positive integers, output: string format)
- https://www.codewars.com/kata/541c8630095125aba6000c00 (6kyu, most languages, highest completion, input: positive integer, output single-digit number after reduction process)
- https://www.codewars.com/kata/56bcae6366a2ab99f10011ec (7kyu, 2 languages, input: strings so overflow can happen, output single-digit number after reduction process in string format)
- https://www.codewars.com/kata/5a1a76c8a7ad6aa26a0007a0 (7kyu, 5 languages, input: date string, output: same as above)
- https://www.codewars.com/kata/52f3149496de55aded000410 (7kyu, 11 languages, input: positive and negative integers, output: sum of digits excluding negative sign)
Number of values required before value overflow (dedicated issue: #151)
- https://www.codewars.com/kata/5d49c93d089c6e000ff8428c (7kyu, 16 languages, arrays are sorted in descending order)
- https://www.codewars.com/kata/5a84d485742ba347b90006b7 (7kyu, 4 languages, arrays are not sorted)
- https://www.codewars.com/kata/5a91a7c5fd8c061367000002 (7kyu, 19 languages, arrays are not sorted)
Output n highest value in a list (dedicated issue: #163 )
- https://www.codewars.com/kata/53d32bea2f2a21f666000256 (7kyu, 5 languages, output: array of nth largest number in ascending order)
- https://www.codewars.com/kata/57ab3c09bb994429df000a4a (8kyu, 4 languages, output: array of unique nth largest number in descending order)
- https://www.codewars.com/kata/511f11d355fe575d2c000001 (7kyu, 20 languages, highest completion, same as above except no uniqueness)
Calculation involving n biggest / smallest numbers(dedicated issue: #176 )
- https://www.codewars.com/kata/55e3f27d5dee52d8dd0000a9 (7kyu, 4 languages,
sort
disabled, output: difference between 2 biggest numbers) - https://www.codewars.com/kata/5784c89be5553370e000061b (7kyu, 4 languages, output: product between 2 biggest numbers)
- https://www.codewars.com/kata/556196a6091a7e7f58000018 (7kyu, 8 languages, output: sum of 2 biggest numbers)
- https://www.codewars.com/kata/558fc85d8fd1938afb000014 (7kyu , 11 languages, output: sum of 2 smallest numbers)
- https://www.codewars.com/kata/577303d4914da62b4b0001c4 (beta, JS only, same as above, should be retired)
- https://www.codewars.com/kata/5aa1bcda373c2eb596000112 (7kyu, 23 languages, array is not guaranteed to be unique, output: sum of three biggest numbers)
- https://www.codewars.com/kata/5a63948acadebff56f000018 (7kyu, 22 languages, output: product of n biggest numbers)
Largest / smallest product of n consecutive numbers (dedicated issue: #177 )
- https://www.codewars.com/kata/529872bdd0f550a06b00026e (5kyu, 4 languages, The input string always has more than five digits, output: greatest product of five consecutive digits)
- https://www.codewars.com/kata/554e52e7232cdd05650000a0 (6kyu, 3 languages, string can be of any length, output: Lowest product of 4 consecutive numbers if length >= 4 else
"Number is too small"
)
Find missing element(dedicated issue: #184 )
- https://www.codewars.com/kata/5299413901337c637e000004 (7kyu, 10 languages, higher completion, input: array of numbers from 0-9 with one missing)
- https://www.codewars.com/kata/57f5e7bd60d0a0cfd900032d (7kyu, 8 languages, input: array of numbers from 0-100(inclusive) with one missing)
string / number accumulation(dedicated issue: #189 )
- https://www.codewars.com/kata/56576f82ab83ee8268000059 (7kyu, 3 languages, input: array of strings, output: array of accumulated strings)
- https://www.codewars.com/kata/586bca7fa44cfc833e00005c (7kyu, 6 languages, input: number, output: same as above)
- https://www.codewars.com/kata/59b44d00bf10a439dd00006f (7kyu, 4 languages, input: array of numbers, output: same as above)
Number of days between two dates (dedicated issue: #192 )
- https://www.codewars.com/kata/59569ba543e2a8ebda00012a (Java only, 6kyu, given two dates)
- https://www.codewars.com/kata/5a1ebe0d46d843454100004c (JS only, 7kyu, input: [M, D, YYYY], calculate days between given date and first date of year, leap year must be considered)
- https://www.codewars.com/kata/5803753aab6c2099e600000e (3 languages, 7kyu, input:
year, month, day
, calculate days between given date and today) - https://www.codewars.com/kata/5837fd7d44ff282acd000157 (5 languages, 6kyu, same as above except date might be in the past (negative days), output: string format)
- https://www.codewars.com/kata/579203bdc38ec2f536000017 (C# only, beta)
get first character of word (uppercase) (dedicated issue: #196 )
- https://www.codewars.com/kata/5639bdcef2f9b06ce800005b (7kyu, 7 languages, input: string, output: first character of each word)
- https://www.codewars.com/kata/57b56af6b69bfcffb80000d7 (7kyu, 5 languages, input: string, output: first character of each word + "." separated by space)
- https://www.codewars.com/kata/5768a693a3205e1cc100071f (7kyu, 3 languages, input: string, output: first name + first character of middle names (followed by ".") + last name (each separated by space) )
- https://www.codewars.com/kata/55968ab32cf633c3f8000008 (7kyu, 4 languages, input: string, output: same as above except only last name kept and no space as separator)
- https://www.codewars.com/kata/59b843b58bcb7766660000f6 (7kyu, 3 languages, input: array, output: first character of each word)
Animals organ count(dedicated issue: #197)
- https://www.codewars.com/kata/58cf479f87c2e967250000e4
- https://www.codewars.com/kata/5a02037ac374cbab41000089
- https://www.codewars.com/kata/574c5075d27783851800169e
Count connected components (dedicated issue: #200 )
- https://www.codewars.com/kata/5e452a0a5111c7001faa2a71
- https://www.codewars.com/kata/5611e038a1b7990def000076
- https://www.codewars.com/kata/55a4f1f67157d8cbe200007b
Find elements in an array but not in the other (dedicated issue: #201 )
- https://www.codewars.com/kata/523f5d21c841566fde000009
- https://www.codewars.com/kata/581fc49b55c3d2d83c0000f8 (perf version of above)
- https://www.codewars.com/kata/563089b9b7be03472d00002b
window sliding (dedicated issue: #208 )
- https://www.codewars.com/kata/55f8b5b09ec923860200000f (7kyu, 5 languages, find max)
- https://www.codewars.com/kata/5c745b30f6216a301dc4dda5 (7kyu, python only, find average)
Musical transpose (dedicated issue: #224 )
- https://www.codewars.com/kata/59bda06acb7fb43a94000036/discuss/csharp
- https://www.codewars.com/kata/55b6a3a3c776ce185c000021/discuss
Formatting numbers (dedicated issue: #225 )
- https://www.codewars.com/kata/565c4e1303a0a006d7000127 (6kyu, 6 languages, input: 0 <= n < 2147483647)
- https://www.codewars.com/kata/5274e122fc75c0943d000148 (6kyu, 12 languages, input: any integer)
- https://www.codewars.com/kata/54e9554c92ad5650fe00022b (7kyu, 6 languages, non-negative integers)
- https://www.codewars.com/kata/56a115cadb39a2faa000001e (6kyu, 2 languages, input: positive and negative floating point numbers, output: rounded to 3 decimal places)
- https://www.codewars.com/kata/57f318ce828b3553b40013ea (7kyu, JS only, input: strings or positive integer)
- https://www.codewars.com/kata/5318f00b31b30925fd0001f8 (5kyu, JS only, input: anything, output: 'NaN' for non-numerics, output: 2 decimal places, trailing zeros should be added if not decimal part < 2 characters)
Reverse string or array (dedicated issue: #227 )
- https://www.codewars.com/kata/5413759479ba273f8100003d (7kyu, 6 languages, input: array, built-in: disabled)
- https://www.codewars.com/kata/58e2f8d9f443daa190000031 (8kyu, clojure only, built-in disabled, should be retired due to same as above)
- https://www.codewars.com/kata/57e0206335e198f82b00001d (7kyu, JS and python, input: string, reverse everything except last character)
- https://www.codewars.com/kata/52b74e0936d582d9210005ff (7kyu, CS && JS, input: string, same as below)
- https://www.codewars.com/kata/5168bb5dfe9a00b126000018 (8kyu, high completion, many languages, same as above except without prototyping)
- https://www.codewars.com/kata/53da6d8d112bd1a0dc00008b (8kyu, 6 languages, input: array, same as below)
- https://www.codewars.com/kata/57a04da9e298a7ee43000111 (7kyu, 5 languages, input: array, same as above)
- https://www.codewars.com/kata/57a883cfbb9944a97c000088 (8kyu, recursion must be used, 3 languages only, input: array)
- https://www.codewars.com/kata/557a2c136b19113912000010 (7kyu, 3 languages, input of any type, only reverse string and number only)
- https://www.codewars.com/kata/58b8c94b7df3f116eb00005b (7kyu, 14 languages, non-alphabetic characters should be removed)
- https://www.codewars.com/kata/58069e4cf3c13ef3a6000168 (7kyu, 5 languages, should not use string to do conversion but not tested in python and ruby)
School's locker / door (dedicated issue: #231 )
- https://www.codewars.com/kata/57c15d314677bb2bd4000017 (6kyu, 5 languages)
- https://www.codewars.com/kata/55fc061cc4f485a39900001f (7kyu, 6 languages)
Not handled
pig latin
- https://www.codewars.com/kata/58702c0ca44cfc50dc000245 (3 languages, 7kyu, same as below)
- https://www.codewars.com/kata/5864e2c473bd9c67b70002ba (3 languages, 7kyu, same as above)
- https://www.codewars.com/kata/558878ab7591c911a4000007 (7 languages, 6kyu, more requirements, met quality standards)
- https://www.codewars.com/kata/520b9d2ad5c005041100000f (many languages, high completion, over-ranked at 5kyu, easy requirements except punctuations must be ignored)
- https://www.codewars.com/kata/533c46b140aafec05b000d31 (JS only, 5kyu, more requirements, original casing must be preserved)
mean
https://www.codewars.com/kata/58d93a93091c1143e80000e9 (beta, JS && Ruby only, duplicate as below)- https://www.codewars.com/kata/calculate-average (many languages, high completion, 8kyu, input for empty array)
- https://www.codewars.com/kata/get-the-mean-of-an-array (many languages, high completion, 8kyu, valid input, result rounded down)
- https://www.codewars.com/kata/average-scores (7 languages, 7kyu, result rounded to nearest, forbidden loops)
- https://www.codewars.com/kata/55d277882e139d0b6000005d (8kyu, 6 languages, no requirements)
- https://www.codewars.com/kata/529f32794a6db5d32a00071f (7kyu, 2 languages, involves classes && OOP, uses arguments)
- https://www.codewars.com/kata/5a53f4adb3bfa861120003e6 (JS only, beta, ramda is not enforced, should be retired)
https://www.codewars.com/kata/54b709b811ac249fdb000296 (Haskell only, beta, duplicate above, should be retired)- https://www.codewars.com/kata/514a7bb557cdc630ab00001d (Overranked at 6kyu, ruby only, a lot of issues, should be retired)
- https://www.codewars.com/kata/56c22cdbe0c0f7cae2001789 (JS only, 7kyu, write shortest code < 100)
Find unique numbers
- https://www.codewars.com/kata/55f81f9aa51f9b72a200002f (3 languages, 6kyu, array will have one and only one unique number)
- https://www.codewars.com/kata/585d7d5adb20cf33cb000235 (11 languages, 6kyu, high completion, although description mention about performance but solution in above kata passes this one, same as above)
- https://www.codewars.com/kata/54da5a58ea159efa38000836
Word length filter
- https://www.codewars.com/kata/55b42574ff091733d900002f (7kyu, 6 languages, highest completion, input: array, check if length == 4)
- https://www.codewars.com/kata/5697fb83f41965761f000052 (7kyu, 4 languages ,input: space-separated-string, check if length >= given n)
- https://www.codewars.com/kata/59564f3bcc15b5591a00004a (7kyu, 4 languages, input: array, check if length is even)
Make variable equal to two different values
- https://www.codewars.com/kata/5a5f9f80f5dc3f942b002309 (6kyu, 13 languages, doc's kata,
true/false
) - https://www.codewars.com/kata/5736b7b749fc585e8900001f (6kyu, JS only,
2/3
)
Basic calculator
- https://www.codewars.com/kata/5296455e4fe0cdf2e000059f (7kyu, 4 languages, divisionByZero to be handled (return null / nil / None / raise exception))
- https://www.codewars.com/kata/56368f37d464c0a43c00007f (7kyu, 3 languages, same as above except created after and author converted it into bugfix)
- https://www.codewars.com/kata/583f158ea20cfcbeb400000a (7kyu, 11 languages, no error handling, operators are in words instead of symbols)
- https://www.codewars.com/kata/57356c55867b9b7a60000bd7 (8kyu, 16 languages, highest completion, same as above except operators are symbols)
- https://www.codewars.com/kata/5810085c533d69f4980001cf (8kyu, 4 languages, error handling on invalid symbol or non-numeric inputs)
- https://www.codewars.com/kata/55c933c115a8c426ac000082 (8kyu, bug fixing, 5 languages)
Levenshtien distance
- https://www.codewars.com/kata/545cdb4f61778e52810003a2 (6kyu, 2 languages, output: distance between two words)
- https://www.codewars.com/kata/5259510fc76e59579e0009d4 (5kyu, 6 languages, output: nearest word chosen from list of words)
Uppercase string
- https://www.codewars.com/kata/57a0556c7cb1f31ab3000ad7 (8kyu, many languages)
- https://www.codewars.com/kata/53d628de83db278fb1000710 (7kyu, 2 languages, use of prototypes)
implement map
- https://www.codewars.com/kata/56e20642ddeb0f4fac000344 (7kyu, JS only, prototyping)
- https://www.codewars.com/kata/54b7c8d2cd7f51a839000ebf (7kyu, JS only)
- https://www.codewars.com/kata/587c37897f7dc251a0000001 (7kyu, Python only)
- https://www.codewars.com/kata/59bdbe9d46038724ca0000b9 (7kyu, JS & TS only, low quality)
- https://www.codewars.com/kata/53951fff369894e4f10007a9 (7kyu, 2 languages, same as below)
- https://www.codewars.com/kata/57f781872e3d8ca2a000007e (8kyu, high completion with many languages, same as above)
- https://www.codewars.com/kata/57a20510cf1fa5bfc400095f (7kyu, 2 languages, same concept as above except all numbers negative)
All of these can be merged into one
Type of input
- https://www.codewars.com/kata/57293671c98f77e84b000065 (7kyu, JS only)
- https://www.codewars.com/kata/55a89dd69fdfb0d5ce0000ac (7kyu, Python only)
Both of these can be merged into one
Moving zeros to front / end
- https://www.codewars.com/kata/55c098aa8468f3b9030000f1 (7kyu, 2 languages only, move to front or end based on parameter)
- https://www.codewars.com/kata/52597aa56021e91c93000cb0 (5kyu, 10 languages, move to end)
manipulate parameter based on index
- https://www.codewars.com/kata/555b73a81a6285b6ce000047 (6 languages, multiply index by value of arguments then sum)
- https://www.codewars.com/kata/555de49a04b7d1c13c00000e (3 languages, same as above except divide instead of multiply)
max / min value of array
- https://www.codewars.com/kata/588a3c3ef0fbc9c8e1000095 (7kyu, 7 languages, find max - min, return 0 if list length < 2)
- https://www.codewars.com/kata/56d19b2ac05aed1a20000430 (7kyu, 5 languages, same as above except list length >= 2)
- https://www.codewars.com/kata/57a1ae8c7cb1f31e4e000130 (7kyu, 5 languages, [min, max])
- https://www.codewars.com/kata/55da49c166949c319200003e (7kyu, JS only, prototyping, find max)
- https://www.codewars.com/kata/577a98a6ae28071780000989 (8kyu, 15 languages, find min and max in separate function)
- https://www.codewars.com/kata/55a2d7ebe362935a210000b2 (8kyu, 22 languages, find min)'
- https://www.codewars.com/kata/5b73fe9fb3d9776fbf00009e (8kyu, 7 languages, sum of difference in array (not obvious) )
- https://www.codewars.com/kata/559590633066759614000063 (7kyu, 7 languages, output: [lowest, highest])
- https://www.codewars.com/kata/5720a1cb65a504fdff0003e2 (8kyu, 7 languages, output: [lowest, highest, highest - lowest])
Time decomposition
- https://www.codewars.com/kata/53988ee02c2414dbad000baa (6kyu, 3 languages, input: n >= 0, output: "just now" / "n seconds/minutes/hours/days/weeks ago")
- https://www.codewars.com/kata/5a084a098ba9146690000969 (7kyu, 4 languages, input: any integer, output:
hh:mm
) - https://www.codewars.com/kata/52685f7382004e774f0001f7 (5kyu, 11 languages, input: n >= 0, output:
hh:mm:ss
) - https://www.codewars.com/kata/52742f58faf5485cae000b9a (4kyu, 22 languages, input: n >= 0, output: "n years, n days, n hours, n minutes and n seconds / "now" if n is 0)
- https://www.codewars.com/kata/5a4bba4e80eba8df2d00012d (6kyu, JS only, input: array of time in "[[hh:]mm:]ss" format, output: "n days, n hours, n minutes, n seconds")
- https://www.codewars.com/kata/5aceae374d9fd1266f0000f0 (6kyu, JS only, input: time1 in "hh:mm:ss" format, operator ("+" / "-"), time2 in "hh:mm:ss" format, output: "hh:mm:ss" after operation)
mixed arrays operation
- https://www.codewars.com/kata/57eaeb9578748ff92a000009 (8kyu, many languages, sum all strings and non-string integers)
- https://www.codewars.com/kata/57eaec5608fed543d6000021 (7kyu, 8 languages, add up the string integers and subtract this from the total of the non-string integers)
difference between two arrays
- https://www.codewars.com/kata/57475353facb0e7431000651 (7kyu, 3 languages)
- https://www.codewars.com/kata/594093784aafb857f0000122 (7kyu, 5 languages, same as above except output sorted)
currying
*https://www.codewars.com/kata/547aadd5b84a1fd66800041e (7kyu, 2 languages, same as 3. except require check on second number being missing or not)
*https://www.codewars.com/kata/53a20af2e0afd3e2cd000333 (7kyu, 2 languages, concatenate string)
*https://www.codewars.com/kata/56d344c7fd3a52566700124b (7kyu, 4 languages, add two numbers)
*https://www.codewars.com/kata/functional-addition (7kyu, 10 languages, same as above)
*https://www.codewars.com/kata/55c211cce1ef691d9b000061 (7kyu, JS only, more than two numbers involved)
Addition with limitations
- https://www.codewars.com/kata/5a9c35e9ba1bb5c54a0001ac(6kyu, 12 languages, disable "+-" only)
- https://www.codewars.com/kata/536ce83e2f403659a5000d47 (5kyu, JS only, disable "+-[]."`")
- https://www.codewars.com/kata/584c692db32364474000000a (6kyu, python only, only bitwise allowed)
count occurrences of a property in array of dict (Both are the same series)
- https://www.codewars.com/kata/583952fbc23341c7180002fd/javascript (7kyu, 3 languages, count "language" property)
- https://www.codewars.com/kata/coding-meetup-number-5-higher-order-functions-series-prepare-the-count-of-languages (7kyu, 4 languages, count "meal" property)
Change inner words except first & last character
- https://www.codewars.com/kata/589b30ddcf7d024850000089 (6kyu, 4 languages, randomized shuffling)
- https://www.codewars.com/kata/srot-the-inner-ctonnet-in-dsnnieedcg-oredr (6kyu, 12 languages, sort in desc order)
SQL Pivot (Basically the same concept)
- https://www.codewars.com/kata/5816a3ecf54413a113000074/sql
- https://www.codewars.com/kata/5982020284a83baf2f00001c/sql
modify math.random
- https://www.codewars.com/kata/5268af3872b786f006000228
- https://www.codewars.com/kata/52672d961283975bd70002b0/javascript
Minimum change (more to be added)
- https://www.codewars.com/kata/55722d67355421ab510001ac
- https://www.codewars.com/kata/586b1b91c66d181c2c00016f
- https://www.codewars.com/kata/5365c93f8d004c94c90002e7/discuss/javascript
- https://www.codewars.com/kata/counting-change-combinations
Reimplement sort algo
- https://www.codewars.com/kata/56bac4c34537cf1e270005a1/javascript
- https://www.codewars.com/kata/52105fab0bd0ce9dd00000fe/javascript
Palindrome builder
- https://www.codewars.com/kata/53629117f81a7f9b9e000d1e/javascript
- https://www.codewars.com/kata/58efb6ef0849132bf000008f/python
Missing and Duplicate Numbers
- https://www.codewars.com/kata/54eee76e7f9142f0cd001270 (5kyu, JS only)
- https://www.codewars.com/kata/5a179d4346d843ff1200000c (6kyu, Python only)
Both katas enforce performance requirements with O(N) time complexity
Diagonal Matrix
- https://www.codewars.com/kata/551204b7509063d9ba000b45 (7kyu, 8 languages, output: product of principal diagonal)
- https://www.codewars.com/kata/5a8c1b06fd5777d4c00000dd (7kyu, 8 languages, output: string depending on sum of principal or secondary diagonal is larger)
- https://www.codewars.com/kata/5592fc599a7f40adac0000a8 (7kyu, 4 languages, output: sum of principal and secondary diagonal, same as above except no comparison)
- https://www.codewars.com/kata/5497a3c181dd7291ce000700 (7kyu, 6 languages, output: sum of principal diagonal)
- https://www.codewars.com/kata/61833783045228000954ef11 (6kyu, C# only, output: sum of principal and secondary diagonal based on positioning given)
zip
- https://www.codewars.com/kata/582642b1083e12521f0000da (7kyu, 3 languages, zip two arrays of same length)
- https://www.codewars.com/kata/5966ffb962d030e11a00005a (7kyu, JS only, zip and sum strings)
- https://www.codewars.com/kata/583af10620dda4da270000c5 (7kyu, C & JS only, zip two arrays of different length)
- https://www.codewars.com/kata/563b1f55a5f2079dc100008a (7kyu, 8 languages, zip and find max of each zipped elements)
- https://www.codewars.com/kata/56aaf25213edd3a88a000002 (7kyu, 5 languages, prototyping in JS, function block provided as argument, differ length of two arrays)
- https://www.codewars.com/kata/5825792ada030e9601000782 (6kyu, 4 languages, author: Johan, same as above except prototyping)
string concatenation / formatting
- https://www.codewars.com/kata/5625618b1fe21ab49f00001f (8kyu, 12 languages, grasshopper series)
- https://www.codewars.com/kata/56dae9dc54c0acd29d00109a (8kyu, 5 languages, bugfix kata, grasshopper series)
- https://www.codewars.com/kata/55a70521798b14d4750000a4 (8kyu, 26 languages)
- https://www.codewars.com/kata/55f73f66d160f1f1db000059 (8kyu, 6 languages, grasshopper series)
- https://www.codewars.com/kata/55a14f75ceda999ced000048 (8kyu, 6 languages, kata mentions about usage of template strings in JS but not enforced in any languages)
- https://www.codewars.com/kata/582e4c3406e37fcc770001ad (8kyu, JS only, forces use of template strings)
- https://www.codewars.com/kata/55955a48a4e9c1a77500005a (7kyu, 5 languages, input can be nil / None/ null)
- https://www.codewars.com/kata/57da8b50a82a19ecca001513 (8kyu, F# only, similar to above)
- https://www.codewars.com/kata/5302d846be2a9189af0001e4 (8kyu, 7 languages, involves conveting array to string)
- https://www.codewars.com/kata/59811fd8a070625d4c000013 (8kyu, 7 languages, teaches concept about integral)
- https://www.codewars.com/kata/5963c18ecb97be020b0000a2 (8kyu, 7 languages, teaches concept about derivatives)
- https://www.codewars.com/kata/5865cff66b5699883f0001aa (7kyu, 13 languages, involve easy time conversion)
- https://www.codewars.com/kata/5859c82bd41fc6207900007a (7kyu, 6 languages, thinkful series)
Capitalize
- https://www.codewars.com/kata/559e5b717dd758a3eb00005a (7kyu, 5 languages, capitalize words with length > 2)
- https://www.codewars.com/kata/535474308bb336c9980006f2 (7kyu, 7 languages, string concatenation + capitalize whole string)
- https://www.codewars.com/kata/57e3f79c9cb119374600046b (8kyu, 12 languages, same as above except requires default parameter in some languages)
- https://www.codewars.com/kata/595970246c9b8fa0a8000086 (8kyu, 10 languages, capitalize single words)
- https://www.codewars.com/kata/5bf774a81505a7413400006a (7kyu, 3 languages, capitalize sentences in string)
Alternate capitalization
- https://www.codewars.com/kata/5982619d2671576e90000017 (7kyu, 9 languages, alternatively capitalize whole string)
- https://www.codewars.com/kata/52b757663a95b11b3d00062d (6kyu, 9 languages, altenatively capitalize each sentence of string)
- https://www.codewars.com/kata/59cfc000aeb2844d16000075 (7kyu, many languages, author: KenKamau, output: array of capitalized letters paritioned based on index (even / odd) )
Flatten
- https://www.codewars.com/kata/513fa1d75e4297ba38000003 (5kyu, 3 languages, input: arguments of mixed type, output: flattened array)
- https://www.codewars.com/kata/55a5bef147d6be698b0000cd (7kyu, python only, input: array of mixed type, output: flattened array)
- https://www.codewars.com/kata/5250a89b1625e5decd000413 (7kyu, 4 languages, input: array of mixed type, output: flattened-once array)
- https://www.codewars.com/kata/57ee99a16c8df7b02d00045f (7kyu, 16 languages, input: array of numbers, output: sorted && flattened-once array)
Concatenate array
- https://www.codewars.com/kata/53a8a476947277a3020001cc (7kyu, 3 languages)
- https://www.codewars.com/kata/56a2d27f8af7384815000037 (7kyu, Haskell only)
- https://www.codewars.com/kata/5899642f6e1b25935d000161 (8kyu, 8 languages, same as above except output is sorted)
- https://www.codewars.com/kata/57cc66affa9fc57a6a0003d1 (beta, python only, forbid built-ins which enforce recursion, output same as above)
ascii summation
- https://www.codewars.com/kata/5840586b5225616069000001 (5 languages, 7kyu, compare their summation and return the largest one)
- https://www.codewars.com/kata/55491e9e50f2fc92f3000074 (6 languages, 6kyu, checks if two have same remainder but involves multiplying ascii value)
- https://www.codewars.com/kata/59706036f6e5d1e22d000016 (15 languages, 7kyu, addition of ascii value but starting from 1)
- https://www.codewars.com/kata/572b6b2772a38bc1e700007a (7 languages, 8kyu, real addition of ascii values)
- https://www.codewars.com/kata/59cf03496bddd2aa17000015 (C only, 7kyu, bugfixing)
- https://www.codewars.com/kata/5848cd33c3689be0dc00175c (Python only, 7kyu, bugfixing, extra task being concatenate 2 strings)
round to the nearest or next
- https://www.codewars.com/kata/58249d08b81f70a2fc0001a4 (7kyu, 15 languages, input: number, output: rounded to nearest multiple of 10)
- https://www.codewars.com/kata/582f52208278c6be55000067 (7kyu, 5 languages, input: array, output: array with all elements rounded to nearest multiple of 5)
- https://www.codewars.com/kata/55d1d6d5955ec6365400006d (7kyu, 11 languages, input: number, output: rounded to next multiple of 5)
- https://www.codewars.com/kata/58bccdf56f25ff6b6d00002f (7kyu, 5 languages, input: number, output: rounded to nearest multiple of m with one condition)
logical calculations
- https://www.codewars.com/kata/57096af70dad013aa200007b (8kyu, 7 languages, input: array, output: Booleean value based on given condition (AND / OR / XOR) )
- https://www.codewars.com/kata/58f625e20290fb29c3000056 (7kyu, 2 languages, input: array, output: Boolean value by performing OR operation; edge case for empty array)
- https://www.codewars.com/kata/55b019265ff4eeef8c000039 (6kyu, 7 languages, input: array, output: Boolean value based on given condition (OR / XOR) )
- https://www.codewars.com/kata/58f671ee5522a9c33800009b (7kyu, 3 languages, input: array, output: Boolean value based on implication operation)
cascading subsets
- https://www.codewars.com/kata/545af3d185166a3dec001190 (8kyu, 9 languages, part of Enumerable series, input: array and number, output: cascaded array)
- https://www.codewars.com/kata/53f9a36864b19d8be7000609 (6kyu, 2 languages, input: string and number, output: cascaded array, raise Exception for invalid length)
credit card checker (luhn algorithm)
- https://www.codewars.com/kata/56d55dcdc87df58c81000605 (7kyu, 3 languages)
- https://www.codewars.com/kata/5418a1dd6d8216e18a0012b2 (6kyu, 12 languages)
nth element
- https://www.codewars.com/kata/57d86d3d3c3f961278000005 (7kyu, 4 languages, input: array, null / None for empty arrays, output: last element)
- https://www.codewars.com/kata/54162d1333c02486a700011d (7kyu, 3 languages, input: string / array, output: 2nd last element)
- https://www.codewars.com/kata/5416356b1b28a5e297000bc7 (7kyu, 2 languages, input: string / array, output: nth element)
- https://www.codewars.com/kata/5a512f6a80eba857280000fc (7kyu, 21 languages, input: array, output: nth element of sorted array)
- https://www.codewars.com/kata/577b9960df78c19bca00007e (7kyu, 9 languages, input: number, output: nth element of number, n and number can be negative)
- https://www.codewars.com/kata/54eea36b7f914221eb000e2f (7kyu, 4 languages, input: string, output: nth element of word in sorted string with separator of ', ')
- https://www.codewars.com/kata/5594c4599934000e1e00002e (6kyu, 3 languages, input: array of strings, output: nth element of longest word)
leap year
- https://www.codewars.com/kata/526c7363236867513f0005ca (7kyu, 51 languages, output: Boolean)
- https://www.codewars.com/kata/56d6c333c9ae3fc32800070f (8kyu, 4 languages, output: string)
array to string
- https://www.codewars.com/kata/53dc23c68a0c93699800041d (8kyu, 18 languages, array of string to space separated string)
- https://www.codewars.com/kata/57a06005cf1fa5fbd5000216 (7kyu, 5 languages, same as above)
- https://www.codewars.com/kata/56e2f59fb2ed128081001328 (8kyu, 8 languages, array of integers to comma separated string)
string to array
- https://www.codewars.com/kata/57e76bc428d6fbc2d500036d (8kyu, 21 languages, space separated string to array)
- https://www.codewars.com/kata/57a05e0172292dd8510001f7 (7kyu, 4 languages, same as above)
factors of a number
- https://www.codewars.com/kata/564fa92d1639fbefae00009d (7kyu, 5 languages)
- https://www.codewars.com/kata/57a19defbb994481c40001bd (7kyu, 2 languages)
- https://www.codewars.com/kata/544aed4c4a30184e960010f4 (7kyu, 11 languages, find all divisors except 1 and itself, return
n
is prime if it has no divisors other than 1 and itself)
star triangle (missed one kata during deduplication earlier)
- https://www.codewars.com/kata/576757b1df89ecf5bd00073b (6kyu, many languages, output: array of asteriks)
- https://www.codewars.com/kata/57a0f354e298a77602000159 (6kyu, 2 languages, output: string)
Nth root of number
- https://www.codewars.com/kata/5520714decb43308ea000083 (7kyu, 7 lanugages)
- https://www.codewars.com/kata/552679ea44a9e400b600124f (6kyu, 2 languages, forbidden
**
, but solutions are still spoiled by above)
operations for 2D array
- https://www.codewars.com/kata/5648b12ce68d9daa6b000099 (7kyu, 22 languages, sum of each inner array's difference)
- https://www.codewars.com/kata/586e1d458cb711f0a800033b (7kyu, 3 languages, product of each inner array's difference)
acronym (missed one kata during deduplication earlier)
- https://www.codewars.com/kata/57a60bad72292d3e93000a5a (7kyu, 6 languages)
- https://www.codewars.com/kata/576a599359b11651bc00040e (7kyu, Java only, dashes as special case)
count number of digit from 1 to N
- https://www.codewars.com/kata/58acf6c20b3b251d6d00002d (5kyu, 8 languages, recently approved, max range: 400,000,000,000,000,000)
- https://www.codewars.com/kata/55905b7597175ffc1a00005a (6kyu, 6 languages, max range: 1,000,000,000)
Evaluate prefix notation
- https://www.codewars.com/kata/52f78966747862fc9a0009ae (more languages, more completion)
- https://www.codewars.com/kata/577e9095d648a15b800000d4 (three languages, same as above)
- https://www.codewars.com/kata/55760e83a48ee2d221000020 (beta, 4 languages, same as above)
- https://www.codewars.com/kata/5e5b7f55c2e8ae0016f42339 (4 languages, operators in front of operands)
number to word
- https://www.codewars.com/kata/52724507b149fa120600031d (4 languages, input range: 0- 999999)
- https://www.codewars.com/kata/553a2461098c64ae53000041 (5 languages, input range: 1-999)
- https://www.codewars.com/kata/5463c8db865001c1710003b2 (5 languages, input range: 0 -99999)
- https://www.codewars.com/kata/53c94a82689f84c2dd00007d/javascript (3 languages, input range: 1-1016 (JS), 1-1026(others), different output is accepted)
- https://www.codewars.com/kata/52608f5345d4a19bed000b31 (2 languages, chinese version, involves decimal places, input range: -99999.999 to 99999.999)
- https://www.codewars.com/kata/5461c0e29726f66bb60010b1/javascript (JS only, involves negative numbers and decimals, input range: numbers+- 2 quadrillion, “and”, “-“ In output, tests for Nan, Infinity, -Infinity, non-numbers….)
- https://www.codewars.com/kata/56b22f1d24a6e0895200001b (Ruby only, beta, duplicate of above)
https://www.codewars.com/kata/531ef65d04da00d637000531/ruby (Ruby only, beta, duplicate of above)- https://www.codewars.com/kata/579ba41ce298a73aaa000255 (3 languages, 7kyu, input range: 0-99)
https://www.codewars.com/kata/number-to-words (JS only, beta, input up to MAX_SAFE_INTEGER, duplicate of above)
Sorting strings / arrays
- https://www.codewars.com/kata/5a8059b1fd577709860000f6 (7kyu, 5 languages, determine if word is sorted lexicographically)
- https://www.codewars.com/kata/are-the-numbers-in-order (7kyu, many languages, determine if array of numbers is sorted ascendingly)
- https://www.codewars.com/kata/5e28b3ff0acfbb001f348ccc (7kyu, 3 languages, same as above except input being 2-dimensional arrays)
https://www.codewars.com/kata/59634e2aa0e7a8966c000a10 (JS only, beta, sort strings lexicographically)- https://www.codewars.com/kata/51f41b98e8f176e70d0002a8 (7kyu, 8 languages, sort array of strings lexicographically)
- https://www.codewars.com/kata/52aeb2f3ad0e952f560005d3 (7kyu, 7 languages, sort strings lexicographically)
- https://www.codewars.com/kata/54466996990c921f90000d61 (7kyu, 5 languages, determine if array of numbers is sorted ascendingly)
- https://www.codewars.com/kata/55d7e5aa7b619a86ed000070 (7kyu, 4 languages, sort strings lexicographically, invalid input may occur)
https://www.codewars.com/kata/586edf5fb98de0ffda0002d5 (JS only, beta, sort arrays, should re retired)- https://www.codewars.com/kata/565ce4ab24ef4aee6a000074 (7kyu, 2 languages, given a, b, c strings; find if combination of b + c sorted is equal to a sorted, space removal)
https://www.codewars.com/kata/59e72051233243fe85000039/javascript (JS only, beta, sort strings lexicographically based on case insensitivity)- https://www.codewars.com/kata/5174a4c0f2769dd8b1000003 (sort arrays, input validation required)
run length encoding
- https://www.codewars.com/kata/run-length-encoding (5 languages, output array of arrays)
https://www.codewars.com/kata/594e7c888e78718cc700020a (swift only, beta)- https://www.codewars.com/kata/compress-slash-encode-a-message-with-rle-run-length-encoding (python only, output string)
- https://www.codewars.com/kata/578bf2d8daa01a4ee8000046 (7 languages, encode and decode, better quality)
https://www.codewars.com/kata/5b35eaf191c7462bf000007d (JS only, beta, more requirements)https://www.codewars.com/kata/5832b7eac5637ad35e0000a5 (python only, beta)
Write numbers in Expanded Form
- https://www.codewars.com/kata/581f5cf739dc42ac2400007b (7kyu, Java only, some issues)
- https://www.codewars.com/kata/5842df8ccbd22792a4000245 (6kyu, 16 languages)