会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
弦断
谁人听?
新随笔
管理
上一页
1
2
3
4
5
6
···
8
下一页
2016年8月24日
219. Contains Duplicate II
摘要: 问题描述 解决方案 class Solution { public: bool containsNearbyDuplicate(vector& nums, int k) { unordered_map mii; for(int i=0;i
阅读全文
posted @ 2016-08-24 07:49 弦断
阅读(102)
评论(0)
推荐(0)
2016年8月23日
191. Number of 1 Bits
摘要: 问题描述 解决方案
阅读全文
posted @ 2016-08-23 22:08 弦断
阅读(106)
评论(0)
推荐(0)
387. First Unique Character in a String
摘要: 问题描述 解决方案 cpp class Solution { public: int firstUniqChar(string s) { unordered_map mci; for(int i=0;i
阅读全文
posted @ 2016-08-23 22:04 弦断
阅读(127)
评论(0)
推荐(0)
88. Merge Sorted Array
摘要: 问题描述 解决方案 渣方法解决的
阅读全文
posted @ 2016-08-23 21:52 弦断
阅读(91)
评论(0)
推荐(0)
167. Two Sum II - Input array is sorted
摘要: 问题描述 解决方案
阅读全文
posted @ 2016-08-23 20:35 弦断
阅读(109)
评论(0)
推荐(0)
189. Rotate Array
摘要: 问题描述 解决方案 下面两种方法的原理是相同的 cpp // class Solution { // public: // void rotate(vector& nums, int k) { // k%=nums.size(); // reverse(nums.begin(),nums.end()
阅读全文
posted @ 2016-08-23 17:34 弦断
阅读(100)
评论(0)
推荐(0)
2016年8月22日
8. String to Integer (atoi)
摘要: 问题描述 解决方案 cpp class Solution { public: //考虑溢出情况 int myAtoi(string str) { long long int lli=atoll(str.c_str()); if(lli 0&&lli INT_MAX) lli=INT_MAX; if(
阅读全文
posted @ 2016-08-22 23:50 弦断
阅读(113)
评论(0)
推荐(0)
342. Power of Four
摘要: 问题描述 解决方案
阅读全文
posted @ 2016-08-22 23:15 弦断
阅读(122)
评论(0)
推荐(0)
345. Reverse Vowels of a String
摘要: 问题描述 解决方案
阅读全文
posted @ 2016-08-22 14:16 弦断
阅读(105)
评论(0)
推荐(0)
21. Merge Two Sorted Lists
摘要: 问题描述 解决方案 非递归方式 递归方式
阅读全文
posted @ 2016-08-22 14:06 弦断
阅读(111)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
8
下一页