codewars
kaisens
这个作者很懒,什么都没留下…
展开
-
Codewars解题Are they the "same"?
题目 Given two arrays a and b write a function comp(a, b) (compSame(a, b) in Clojure) that checks whether the two arrays have the “same” elements, with the same multiplicities. “Same” means, her原创 2017-12-15 20:48:35 · 1312 阅读 · 0 评论 -
Codewars解题Playing with digits
题目 Some numbers have funny properties. For example: 89 –> 8¹ + 9² = 89 * 1 695 –> 6² + 9³ + 5⁴= 1390 = 695 * 2 46288 –> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 * 51 Given a positive原创 2017-12-15 21:14:53 · 862 阅读 · 0 评论 -
Codewars解题Odd or Even?奇数或偶数
题目: Given an array of numbers, determine whether the sum of all of the numbers is odd or even. Give your answer in string format as ‘odd’ or ‘even’. If the input array is empty consider原创 2017-12-15 21:27:58 · 1940 阅读 · 1 评论 -
Codewars解题Sudoku Solution Validator数独校验
题目:数独解决方案验证器 Sudoku Background Sudoku is a game played on a 9x9 grid. The goal of the game is to fill all cells of the grid with digits from 1 to 9, so that each column, each row, and each原创 2017-12-15 21:42:05 · 1294 阅读 · 1 评论