Responsible Drinking Codewars Bar recommends you drink 1 glass of water per stan...
Growth of a Population In a small town the population is p0 = 1000 at the beginn...
Sum of a sequence our task is to make function, which returns the sum of a seque...
Recursion 101 In this Kata, you will be given two positive integers a and b and...
Triangle number check A triangle number is a number where n objects form an equi...
Find the odd int Given an array of integers, find the one that appears an odd nu...
Human Readable Time Write a function, which takes a non-negative integer (second...
Dubstep For example, a song with words "I AM X" can transform into a d...
Sums of Parts 將給予的數列 ls = [0, 1, 3, 6, 10] 分成不同部分的數列直到沒有任何 element,再相加 ls = [0,...
Testing 1-2-3 Your team is writing a fancy new text editor and you've been taske...
Mumbling Example accum("abcd") ;; "A-Bb-Ccc-Dddd" accum(&...
Watermelon Pete and Billy are great fans of even numbers, that's why they want t...
Grasshopper - Personalized Message Create a function that gives a personalized g...
Sort and Star 給予一堆字串,用字首字母排序後,回傳第一個字串,並在字母間 insert "***" Example (deft...
Century From Year The first century spans from the year 1 up to and including th...
Grasshopper - Check for factor This function should test if the factor is a fact...
Number toString Solution (ns number-toString) (def a (.toString 123)) How good...
No zeros for heros Numbers ending with zeros are boring. They might be fun in yo...
Grasshopper - Summation Write a program that finds the summation of every number...
Convert number to reversed array of digits Given a random non-negative number, y...
Even or Odd 給予一個整數,如果是偶數回傳 Even; 奇數回傳 Odd Solution 1 (ns kata) (defn even-or-od...
簡單的說 Kata[1] 指的是在一定的動作之下,去體會設計這個動作的原因,遇見的痛點就是學習的點。 警語!!照著 Kata 練習,會遇到許多的困難。我會在這...
Maximum Length Difference You are given two arrays a1 and a2 of strings. Each st...
How do I compare numbers? What could be easier than comparing integer numbers? H...
Beginner Series - Clock Clock shows 'h' hours, 'm' minutes and 's' seconds after...
Is n divisible by x and y? Create a function that checks if a number n is divisi...
Function 1 - hello world Make a simple function called greet that returns the mo...
Alternate case Write function alternateCase which switch every letter in string...
Recursion 101 You will be given two positive integers a and b and your task will...
String repeat 依據給予的次數重複字串Write a function called repeat_str which repeats the gi...