上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 问题描述 解决方案 class Solution { public: bool containsNearbyDuplicate(vector& nums, int k) { unordered_map mii; for(int i=0;i 阅读全文
posted @ 2016-08-24 07:49 弦断 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 阅读全文
posted @ 2016-08-23 22:08 弦断 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 cpp class Solution { public: int firstUniqChar(string s) { unordered_map mci; for(int i=0;i 阅读全文
posted @ 2016-08-23 22:04 弦断 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 渣方法解决的 阅读全文
posted @ 2016-08-23 21:52 弦断 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 阅读全文
posted @ 2016-08-23 20:35 弦断 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 下面两种方法的原理是相同的 cpp // class Solution { // public: // void rotate(vector& nums, int k) { // k%=nums.size(); // reverse(nums.begin(),nums.end() 阅读全文
posted @ 2016-08-23 17:34 弦断 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 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 弦断 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 阅读全文
posted @ 2016-08-22 23:15 弦断 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 阅读全文
posted @ 2016-08-22 14:16 弦断 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 非递归方式 递归方式 阅读全文
posted @ 2016-08-22 14:06 弦断 阅读(100) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页