摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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构成的连通分量中最大的一个。... 阅读全文