簡單的說 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...
Alternate case Write function alternateCase which switch every letter in string...
Beginner Series - Clock Clock shows 'h' hours, 'm' minutes and 's' seconds after...
Grasshopper - Check for factor This function should test if the factor is a fact...
Recursion 101 In this Kata, you will be given two positive integers a and b and...
Testing 1-2-3 Your team is writing a fancy new text editor and you've been taske...
Human Readable Time Write a function, which takes a non-negative integer (second...
Responsible Drinking Codewars Bar recommends you drink 1 glass of water per stan...
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...
Recursion 101 You will be given two positive integers a and b and your task will...
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...
Grasshopper - Personalized Message Create a function that gives a personalized g...
Sum of a sequence our task is to make function, which returns the sum of a seque...
Maximum Length Difference You are given two arrays a1 and a2 of strings. Each st...
String repeat 依據給予的次數重複字串Write a function called repeat_str which repeats the gi...
Growth of a Population In a small town the population is p0 = 1000 at the beginn...
Mumbling Example accum("abcd") ;; "A-Bb-Ccc-Dddd" accum(&...
Dubstep For example, a song with words "I AM X" can transform into a d...
Century From Year The first century spans from the year 1 up to and including th...
Sort and Star 給予一堆字串,用字首字母排序後,回傳第一個字串,並在字母間 insert "***" Example (deft...
Sums of Parts 將給予的數列 ls = [0, 1, 3, 6, 10] 分成不同部分的數列直到沒有任何 element,再相加 ls = [0,...
Even or Odd 給予一個整數,如果是偶數回傳 Even; 奇數回傳 Odd Solution 1 (ns kata) (defn even-or-od...
Number toString Solution (ns number-toString) (def a (.toString 123)) How good...
Grasshopper - Summation Write a program that finds the summation of every number...
How do I compare numbers? What could be easier than comparing integer numbers? H...
Watermelon Pete and Billy are great fans of even numbers, that's why they want t...