- 博客(11)
- 收藏
- 关注
转载 [4Clojure]解题记录-#80
Perfect NumbersDifficulty:MediumTopics:A number is "perfect" if the sum of its divisors equal the number itself. 6 is a perfect number because 1+2+3=6. Write a ...
2014-12-01 20:32:00 86
转载 [4Clojure]解题记录-#79
Triangle Minimal PathDifficulty:HardTopics:graph-theoryWrite a function which calculates the sum of the minimal path through a triangle. The triangle is represen...
2014-12-01 20:31:00 84
转载 [4Clojure]解题记录-#78
Reimplement TrampolineDifficulty:MediumTopics:core-functionsReimplement the function described in"Intro to Trampoline".(= (letfn [(triple [x] #(sub-two (...
2014-11-27 20:56:00 88
转载 今天被坑,记录一下
IntelliJ IDEA的终端JRE问题折腾了一下午,最终是被坑,怪自己没有经验,jianbing同学一看就帮我发现了猫腻,记录一下,作为前车之鉴。IntelliJ IDEA的terminal的JRE和机器本身JRE的关系,我今天编译完,运行一段代码,一直出错,说 amd 64bit。dll不能在IA 32上运行,我一直不知道原因,因为之前run一直是好的,然后检查...
2014-11-27 20:31:00 91
转载 [4Clojure]解题记录-#77
Anagram FinderDifficulty:MediumTopics:Write a function which finds all the anagrams in a vector of words. A word x is an anagram of word y if all the letters in...
2014-11-27 20:30:00 91
转载 [4Clojure]解题记录-#75
Euler's Totient FunctionDifficulty:MediumTopics:Two numbers are coprime if their greatest common divisor equals 1. Euler's totient function f(x) is defin...
2014-11-27 19:21:00 96
转载 [4Clojure]解题记录-#73
Difficulty:HardTopics:gameAtic-tac-toeboard is represented by a two dimensional vector. X is represented by :x, O is represented by :o, and empty is represented by :e. A...
2014-11-26 19:22:00 95
转载 [4Clojure]解题记录-#70
Difficulty:MediumTopics:sortingWrite a function that splits a sentence up into a sorted list of words. Capitalization should not affect sort order and punctuation shoul...
2014-11-26 19:20:00 100
转载 [4Clojure]解题记录-#69
Difficulty:MediumTopics:core-functionsWrite a function which takes a function f and a variable number of maps. Your function should return a map that consists of the re...
2014-11-26 19:19:00 97
转载 [4Clojure]解题记录-#67
Difficulty:MediumTopics:primesWrite a function which returns the first x number of prime numbers.(= (__ 2) [2 3])(= (__ 5) [2 3 5 7 11])(= (last (__ 100))...
2014-11-26 19:18:00 86
转载 [4Clojure]解题记录-#63
题目Difficulty:EasyTopics:core-functionsGiven a function f and a sequence s, write a function which returns a map. The keys should be the values of f applied to each it...
2014-11-26 19:16:00 94
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人