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...
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...
為了熟悉 clojure,刷題練習語法 Get the mean of an array 回傳最接近陣列平均數的整數(無條件捨去),且不會給空陣列Return...
何謂 八皇后問題 “如何能夠在8×8的西洋棋棋盤上放置八個皇后,任兩個皇后都不能處於同一條橫行、縱行或斜線上。” 假定有一個 safe?的function,來判...
计算机程序的构造和解释(Lec5b:计算对象) ,整個影片都很值得看,但這篇要說的是從 46:35左右開始講的,後面參雜了一點 lec6a。 最近開始學Cloj...
下一步 回顧 你從一無所知,到現在對 Clojure 有了初步的認識。首先知道了 Clojure 的基本組成以及資料結構與型態,接着學會了如何建立繫結與函式,知...
測試 你是否有過這樣的經驗:本來只是修改了 A 部分的程式,結果改完之後 B 部分的程式竟然不正常;或者是以前早就改好的問題,在這次改版之後又出現了呢?當有這些...
巨集 授人以 Fortran 得 Fortran,授人以 Lisp 得所喜之語言。 — 蓋伊·史提爾二世《The Seasoned Schemer》 LIS...
並行與併發(四) 狀態管理與併發 參考類型 Agent 有別於 Ref 與原子類型的協調式與同步式,Agent 類型狀態的更新不需與其他狀態更新協同合作,也不需...
並行與併發(三) 狀態管理與併發 參考類型 Ref Clojure 使用了軟體事務存儲 (Software Transactional Memory,之後簡稱...