摘要:
按照自己的理解题目,数组内所有的组合;假如[1,2,3,4]看成1111到0000里面的排列组合,取位运算。 vector subsets(vector&nums) { int S = nums.size(); int N = 1 res; for (int i = 0; i v; for (int 阅读全文
摘要:
1040水题; These days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, I g 阅读全文
摘要:
英文题目: A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangem 阅读全文
摘要:
题目描述: Yogurt factory The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the pric 阅读全文