Kata
Temple

30 DAYS KATA CHALLENGE 🥷

Week 1 - 8kyu 🤙

Mission :
Given 2 strings, a and b, write a method that return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a function findNeedle() that takes an array full of junk but containing one "needle" 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Given a string, you have to return a string in which each character (case-sensitive) is repeated once 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Create a function that checks if a number n is divisible by two numbers x AND y 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Given 2 strings, a and b, write a method that return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a method that remove the spaces from the string, then return the resultant string 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Given a non-negative integer, return an array of the individual digits in order 🔥
Language : Ruby ♦️
Difficulty : 8kyu 🤙
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Week 2 - 7kyu 👀

Mission :
Take 2 strings s1 and s2. Return a new sorted string, the longest possible, containing distinct letters - each taken only once - coming from s1 or s2 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Create a function that returns the average of an array of numbers ("scores"), rounded to the nearest whole number 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Given a random string consisting of numbers, letters, symbols, you need to sum up the numbers in the string 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a method that return largest 5 digit number in a series 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a function that returns both the minimum and maximum number of the given array 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Given a two-dimensional array of integers, return the flattened version of the array with all the integers in the sorted (ascending) order 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Sum of two lowest positive integers from a array 🔥
Language : Ruby ♦️
Difficulty : 7kyu 👀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Week 3 - 6kyu

Mission :
Write a method that splits the string into pairs of two characters 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same value next to each other 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Takes two arrays consisting of integers, and returns the sum of those two arrays. 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number. 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
There is an array with some numbers. All numbers are equal except for one find him 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Find the one that appears an odd number of times in a array 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a function that takes in a string of one or more words, and returns the same string, but with all five or more letter words reversed 🔥
Language : Ruby ♦️
Difficulty : 6kyu ⚡
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Week 4 - 5kyu 🤯

Mission :
Write a method that takes a string of parentheses, and determines if the order of the parentheses is valid 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a method who create a hashtag generator from a string 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a method that takes a string input, and returns the first character that is not repeated anywhere in the string 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
The input are formatted in the following way: name-yymm
The return of the function shall first be sorted by yymm, then by the name (which varies in length) 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a method that takes a maximum bound and returns all primes up to and including the maximum bound 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a regex :
  • At least six characters long
  • Contains a lowercase letter
  • Contains an uppercase letter
  • Contains a number 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Move the first letter of each word to the end of it, then add "ay" to the end of the word. Leave punctuation marks untouched 🔥
Language : Ruby ♦️
Difficulty : 5kyu 🤯
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Week 5 - 4kyu 💀

Mission :
Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out 🔥
Language : Ruby ♦️
Difficulty : 4kyu 💀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :

Mission :
Write a function that, given a string of text (possibly with punctuation and line-breaks), returns an array of the top-3 most occurring words, in descending order of the number of occurrences 🔥
Language : Ruby ♦️
Difficulty : 4kyu 💀
Link to daily challenge : Codewars 👈
🥷 Sensei solution :