上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 51 下一页
2014年5月2日
摘要: 2014-05-02 09:54题目链接原题:You have two numbers decomposed in binary representation, write a function that sums them and returns the result. Input: 100011... 阅读全文
posted @ 2014-05-02 09:59 zhuli19901106 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 09:40题目链接原题:Given a number N, write a program that returns all possible combinations of numbers that add up to N, as lists. (Exclude the N+... 阅读全文
posted @ 2014-05-02 09:54 zhuli19901106 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 08:29题目链接原题:Write a function for retrieving the total number of substring palindromes. For example the input is 'abba' then the possible pa... 阅读全文
posted @ 2014-05-02 09:33 zhuli19901106 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 07:49题目链接原题:Given a set of n points (coordinate in 2d plane) within a rectangular space, find out a line (ax+by=c), from which the sum of t... 阅读全文
posted @ 2014-05-02 08:24 zhuli19901106 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 07:37题目链接原题:// merge sorted arrays 'a' and 'b', each with 'length' elements, // in-place into 'b' to form a sorted result. assume that 'b' ... 阅读全文
posted @ 2014-05-02 07:46 zhuli19901106 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 07:18题目链接原题:boolean isBST(const Node* node) { // return true iff the tree with root 'node' is a binary search tree. // 'node' is guaranteed... 阅读全文
posted @ 2014-05-02 07:36 zhuli19901106 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 07:06题目链接原题:Given an array of randomly sorted integers and an integer k, write a function which returns boolean True if a pair of numbers e... 阅读全文
posted @ 2014-05-02 07:16 zhuli19901106 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 03:37题目链接原题:A string is called sstring if it consists of lowercase english letters and no two of its consecutive characters are the same. Y... 阅读全文
posted @ 2014-05-02 06:58 zhuli19901106 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 03:19题目链接原题:Given a sequence of numbers A(1) ..A(n), find the continuous subsequenceA(i)..A(j) for which the sum of elements is maximum. co... 阅读全文
posted @ 2014-05-02 03:30 zhuli19901106 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 02:33题目链接原题:Given the following 3 by 3 grid where the (first row, first column) is represented by (0,0): 0,1 1,2 3,3 1,1 3,3 3,2 3,0 1,3 nu... 阅读全文
posted @ 2014-05-02 02:34 zhuli19901106 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 51 下一页