摘要: 问题描述 解决方案 我的方法 别人的 阅读全文
posted @ 2016-08-24 23:25 弦断 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 class Solution { public: int maxProfit(vector& prices) { int ret =0; for(int i=1;i 阅读全文
posted @ 2016-08-24 22:57 弦断 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 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) 编辑