06 2020 档案

摘要:1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x), next(NULL) {} 7 * }; 阅读全文
posted @ 2020-06-07 16:49 Jinxiaobo0509 阅读(143) 评论(0) 推荐(0)
摘要:1 class Solution 2 { 3 public: 4 ListNode* mergeKLists(vector<ListNode*>& lists) 5 { 6 vector<int> nums; 7 for(auto a : lists) 8 { 9 ListNode* head = 阅读全文
posted @ 2020-06-07 16:47 Jinxiaobo0509 阅读(132) 评论(0) 推荐(0)
摘要:1 class Solution 2 { 3 public: 4 double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) 5 { 6 int m = nums1.size(),n = nums2.size(); 7 阅读全文
posted @ 2020-06-07 16:45 Jinxiaobo0509 阅读(225) 评论(0) 推荐(0)
摘要:1 class Solution 2 { 3 public: 4 vector<int> findSubstring(string s, vector<string>& words) 5 { 6 if(s.empty() || words.empty()) return {}; 7 int n = 阅读全文
posted @ 2020-06-07 16:42 Jinxiaobo0509 阅读(185) 评论(0) 推荐(0)
摘要:1 class Solution 2 { 3 public: 4 int slidingPuzzle(vector<vector<int>>& board) 5 { 6 int m = 2, n = 3; 7 string start = ""; 8 string target = "123450" 阅读全文
posted @ 2020-06-06 19:26 Jinxiaobo0509 阅读(217) 评论(0) 推荐(0)