摘要: class Solution { public: int findLHS(vector& nums) { int res=0; map m; for(auto num:nums) ++m[num]; for(auto a:m){ if (m.count(a.first+1)){ ... 阅读全文
posted @ 2018-10-01 19:11 hopskin1 阅读(174) 评论(0) 推荐(0) 编辑