2020年5月22日

lc 最长连续序列

摘要: 链接:https://leetcode-cn.com/problems/longest-consecutive-sequence/ 代码: class Solution { public: int longestConsecutive(vector<int>& nums) { int n = num 阅读全文

posted @ 2020-05-22 23:56 FriskyPuppy 阅读(199) 评论(0) 推荐(0) 编辑

lc 最长连续递增序列

摘要: 链接:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 代码: class Solution { public: int findLengthOfLCIS(vector<int>& nums) { 阅读全文

posted @ 2020-05-22 23:52 FriskyPuppy 阅读(162) 评论(0) 推荐(0) 编辑

lc 搜索旋转排序数组

摘要: 链接:https://leetcode-cn.com/problems/search-in-rotated-sorted-array/ 代码: #include <algorithm> class Solution { public: int search(vector<int>& nums, in 阅读全文

posted @ 2020-05-22 23:50 FriskyPuppy 阅读(218) 评论(0) 推荐(0) 编辑

导航