08 2013 档案

[Microsoft] string permutation with upcase and lowcase
摘要:Give a string, which only contains a-z. List all the permutation of upcase and lowcase. For example, str = "ab", the output should be "ab", "aB", "Ab... 阅读全文

posted @ 2013-08-06 06:44 小刀初试 阅读(170) 评论(0) 推荐(0)

[Interview] string permutation
摘要:Give a string, which only contains a-z. List all the permutation of upcase and lowcase.For example, str = "ab", the output should be"ab", "aB", "Ab",... 阅读全文

posted @ 2013-08-05 14:08 小刀初试 阅读(98) 评论(0) 推荐(0)

Test
摘要:1: #include 2: using namespace std; 3: 4: class PiecewiseLinearFunctionDiv2 5: { 6: public: 7: vector countSolutions(vector Y,... 阅读全文

posted @ 2013-08-05 05:23 小刀初试 阅读(196) 评论(0) 推荐(0)

[TopCoder] SRM 586 DIV 2, 500p, 1000p, Solution
摘要:Problem Statement F is a function that is defined on all real numbers from the closed interval [1,N]. You are given a vector Y w... 阅读全文

posted @ 2013-08-05 05:06 小刀初试 阅读(254) 评论(0) 推荐(0)

[TopCoder] SRM 587 DIV 2, 250p, 500p, 1000p, Solution
摘要:Problem Statement 250P You are given two strings: init and goal. Both init a... 阅读全文

posted @ 2013-08-03 04:49 小刀初试 阅读(463) 评论(0) 推荐(0)