摘要: Description: This time no story, no theory. The examples below show you how to write function accum: Examples: accum("abcd"); // "A-Bb-Ccc-Dddd" accum 阅读全文
posted @ 2016-11-21 10:15 shaoxia.s 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Description: Write a function toWeirdCase (weirdcase in Ruby) that accepts a string, and returns the same string with all even indexed characters in e 阅读全文
posted @ 2016-11-17 12:33 shaoxia.s 阅读(537) 评论(0) 推荐(0) 编辑
摘要: Description: Given two arrays of strings a1 and a2 return a sorted array r in lexicographical order of the strings of a1 which are substrings of strin 阅读全文
posted @ 2016-11-17 10:20 shaoxia.s 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 题目: Create Phone Number Description: Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers i 阅读全文
posted @ 2016-11-17 09:40 shaoxia.s 阅读(597) 评论(0) 推荐(0) 编辑