摘要: 题目: 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 阅读(210) 评论(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 阅读(170) 评论(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 阅读(213) 评论(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 阅读(178) 评论(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 阅读(237) 评论(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 阅读(223) 评论(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 阅读(194) 评论(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 阅读(567) 评论(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 阅读(277) 评论(0) 推荐(0) 编辑
摘要: var testFun = function( callback,lblstr ){ //callback 是你的方法 lblstr做标记的名称,测试字符串在函数内部。如有错误,自行改正。。切勿打脸(测试代码来源网上) var teststr = '3345687687876789123'; var 阅读全文
posted @ 2017-08-08 11:16 tong24 阅读(126) 评论(0) 推荐(0) 编辑