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