会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
红桃J
用心写好每行完美的代码,远比写一堆更有价值
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2015年5月16日
leetcode Trapping Rain Water
摘要: 无脑写代码代码(TLE): 1 #include 2 #include 3 4 using namespace std; 5 6 int findLeft(int i, vector height) 7 { 8 int t = i-1; 9 while ((t+1= 0)10 ...
阅读全文
posted @ 2015-05-16 16:41 红桃J
阅读(199)
评论(0)
推荐(0)
leetcode First Missing Positive
摘要: 代码: 1 #include 2 #include 3 4 using namespace std; 5 6 void swap(int &a, int &b) 7 { 8 int c = a; 9 a = b;10 b = c;11 }12 13 int firstMi...
阅读全文
posted @ 2015-05-16 16:17 红桃J
阅读(155)
评论(0)
推荐(0)