03 2016 档案
摘要:把我难哭了 T T 目前还在想第二种方法。。。。 耗时5小时总算想出来了。。。。 前面一种方法用的递归,下面的方法用的是迭代,要比递归快的多。 不容易啊!
阅读全文
摘要:使用的时候需要导入sstream头文件
阅读全文
摘要:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
阅读全文
摘要:Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s
阅读全文
摘要:本文转载自http://www.cnblogs.com/tracylee/archive/2012/12/04/2801519.html string s("xyzzy"); string& rs = s; // 正确,rs指向s 指针没有这样的限制。 string *ps; // 未初始化的指针
阅读全文

浙公网安备 33010602011771号