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 * };
阅读全文
摘要: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 =
阅读全文
摘要: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
阅读全文
摘要: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 =
阅读全文
摘要: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"
阅读全文