随笔分类 -  codewars

摘要:题目: Part of Series 1/3 This kata is part of a series on the Morse code. After you solve this kata, you may move to the next one. 系列的一部分,1/3 这个形是莫尔斯电码系 阅读全文
posted @ 2017-08-19 18:19 tong24 阅读(511) 评论(0) 推荐(0)
摘要:题目: A square of squares You like building blocks. You especially like building blocks that are squares. And what you even like more, is to arrange the 阅读全文
posted @ 2017-08-19 17:34 tong24 阅读(394) 评论(0) 推荐(0)
摘要:javascript面试题:如何把一句英文每个单词首字母大写? js中prototype用法 阅读全文
posted @ 2017-08-17 16:50 tong24 阅读(594) 评论(0) 推荐(0)
摘要:字符串中筛选某个字符串 阅读全文
posted @ 2017-08-17 15:01 tong24 阅读(313) 评论(0) 推荐(0)
摘要:题目: Generators can be used to wonderful things. You can use them for numerous things, but here is one specific example. You are studying for a test so 阅读全文
posted @ 2017-08-16 17:15 tong24 阅读(187) 评论(0) 推荐(0)
摘要:题目: 【JS排序】var str = "1245242"; //这是数组 要求从出现次数多到少排序示例结果:2:3,4:2,1:1,5:1【2出现3次,4出现2次...】 答案: 阅读全文
posted @ 2017-08-08 13:00 tong24 阅读(162) 评论(0) 推荐(0)
摘要:题目: Given an array of one's and zero's convert the equivalent binary value to an integer. Eg: [0, 0, 0, 1] is treated as 0001 which is the binary repr 阅读全文
posted @ 2017-08-08 12:57 tong24 阅读(173) 评论(0) 推荐(0)
摘要:题目: The objective of 'Duck, duck, goose' is to walk in a circle, tapping on each player's head until one is finally chosen. Task: Given an array of Pl 阅读全文
posted @ 2017-08-08 12:57 tong24 阅读(218) 评论(0) 推荐(0)
摘要:题目: Deferring a function execution can sometimes save a lot of execution time in our programs by postponing the execution to the latest possible insta 阅读全文
posted @ 2017-08-08 12:56 tong24 阅读(224) 评论(0) 推荐(0)
摘要:题目: Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before, or after the addition. The 阅读全文
posted @ 2017-08-08 12:54 tong24 阅读(185) 评论(0) 推荐(0)
摘要:题目: You probably know the "like" system from Facebook and other pages. People can "like" blog posts, pictures or other items. We want to create the te 阅读全文
posted @ 2017-08-08 12:53 tong24 阅读(242) 评论(0) 推荐(0)
摘要:题目: The new "Avengers" movie has just been released! There are a lot of people at the cinema box office standing in a huge line. Each of them has a si 阅读全文
posted @ 2017-08-08 12:51 tong24 阅读(232) 评论(0) 推荐(0)
摘要:题目: Your task is to write a higher order function for chaining together a list of unary functions. In other words, it should return a function that do 阅读全文
posted @ 2017-08-08 12:49 tong24 阅读(208) 评论(0) 推荐(0)
摘要:题目: Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you 阅读全文
posted @ 2017-08-08 12:48 tong24 阅读(577) 评论(0) 推荐(0)
摘要:题目: You are going to be given an array of integers. Your job is to take that array and find an index N where the sum of the integers to the left of N 阅读全文
posted @ 2017-08-08 12:46 tong24 阅读(291) 评论(0) 推荐(0)
摘要:题目: A Narcissistic Number is a number which is the sum of its own digits, each raised to the power of the number of digits. For example, take 153 (3 d 阅读全文
posted @ 2017-08-07 09:19 tong24 阅读(262) 评论(0) 推荐(0)