上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 51 下一页
2014年5月2日
摘要: 2014-05-02 02:28题目链接原题:I/P: N, k O/P: all subset of N with exactly K elements. eg: I/p: N = 5, K =3 O/p: 1 2 3 1 2 4 1 2 5 1 3 4 1 3 5 2 3 4 2 3 5 3 4... 阅读全文
posted @ 2014-05-02 02:29 zhuli19901106 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 01:05题目链接原题:bool anaStrStr (string needle, string haystack) {}Write a function that takes 2 strings , search returns true if any anagram of... 阅读全文
posted @ 2014-05-02 01:21 zhuli19901106 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 00:59题目链接原题:Given a normal binary tree, write a function to serialize the tree into a string representation (returning the string), and als... 阅读全文
posted @ 2014-05-02 01:03 zhuli19901106 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 00:30题目链接原题:Given two arrays of sorted integers, merge them keeping in mind that there might be common elements in the arrays and that comm... 阅读全文
posted @ 2014-05-02 00:39 zhuli19901106 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 2014-05-02 00:22题目链接原题:Given a matrix consisting of 0's and 1's, find the largest connected component consisting of 1's.题目:给定一个01矩阵,找出由1构成的连通分量中最大的一个。... 阅读全文
posted @ 2014-05-02 00:30 zhuli19901106 阅读(246) 评论(0) 推荐(0) 编辑
2014年5月1日
摘要: 2014-05-01 02:30题目链接原题:Given a matrix of letters and a word, check if the word is present in the matrix. E,g., suppose matrix is: a b c d e f z n a b ... 阅读全文
posted @ 2014-05-01 02:41 zhuli19901106 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 2014-05-01 02:13题目链接原题:Design question: Say you have hacked in to a network and can deploy your bot thousands of machines, how would you design your b... 阅读全文
posted @ 2014-05-01 02:19 zhuli19901106 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 2014-05-01 01:50题目链接原题:Microsoft Excel numbers cells as 1...26 and after that AA, AB.... AAA, AAB...ZZZ and so on. Given a number, convert it to that ... 阅读全文
posted @ 2014-05-01 02:13 zhuli19901106 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 2014-05-01 01:32题目链接原题:Given a linked list where apart from the next pointer, every node also has a pointer named random which can point to any other ... 阅读全文
posted @ 2014-05-01 01:46 zhuli19901106 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 2014-05-01 01:23题目链接原题:WAP to modify the array such that arr[I] = arr[arr[I]]. Do this in place i.e. with out using additional memory. example : if a ... 阅读全文
posted @ 2014-05-01 01:32 zhuli19901106 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 51 下一页