摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.135", "255.255.111.35"]. (Order does not matter) class Solution {public: bool check(string s){ if(atoi(s.c_str() 阅读全文
posted @ 2013-08-12 23:17 冰点猎手 阅读(158) 评论(0) 推荐(0)
摘要: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all 5 unique BST's shown below. 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 / / ... 阅读全文
posted @ 2013-08-12 22:26 冰点猎手 阅读(191) 评论(0) 推荐(0)
摘要: 我的美国CS面试经验分享 -- 转载怎样花两年时间去面试一个人上面列出了一些比较好的书单cs土硕找工作总结(二) 笔试面试准备http://blog.renren.com/blog/221227065/886156817 阅读全文
posted @ 2013-08-12 21:32 冰点猎手 阅读(187) 评论(0) 推荐(0)
摘要: Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 / / \ \ 2 ... 阅读全文
posted @ 2013-08-12 20:29 冰点猎手 阅读(181) 评论(0) 推荐(0)