05 2018 档案

摘要:// TODO: need improve!!! class Log { public: int id; bool start; int timestamp; int comp; // compasation Log() { id = 0; timestamp = 0; comp = 0; ... 阅读全文
posted @ 2018-05-30 15:11 JTechRoad 阅读(162) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int leastInterval(vector& tasks, int n) { int freq[26] = {0}; for (auto t : tasks) { freq[t-'A']++; } int max_freq = 0, max_fr... 阅读全文
posted @ 2018-05-30 14:24 JTechRoad 阅读(87) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-30 13:55 JTechRoad 阅读(84) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int leastBricks(vector>& wall) { unordered_map m; for (int i = 0; i < wall.size(); i++) for (int j = 0, t = 0; j < wall[i].size() - 1; j++) { ... 阅读全文
posted @ 2018-05-30 13:34 JTechRoad 阅读(80) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-29 23:33 JTechRoad 阅读(67) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: long max_id = 0; unordered_map id_long; // Encodes a URL to a shortened URL. string encode(string longUrl) { id_long[max_id++] = longUrl; ... 阅读全文
posted @ 2018-05-29 23:25 JTechRoad 阅读(98) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: bool checkSubarraySum(vector& nums, int k) { unordered_map m; // 从头元素开始的sum,取模为key的index。 m[0] = -1; int _sum = 0; for (int i = 0; i < n... 阅读全文
posted @ 2018-05-29 23:13 JTechRoad 阅读(83) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: unordered_map dp; int findTargetSumWays(vector& nums, int S) { return helper(nums, S, 0); } int helper(vector& nums, int S, int start) { strin... 阅读全文
posted @ 2018-05-29 14:56 JTechRoad 阅读(71) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int totalHammingDistance(vector& nums) { int res = 0; for (int i = 0; i < 32; i++) { int ones = 0; for (int n : nums) { ... 阅读全文
posted @ 2018-05-29 13:35 JTechRoad 阅读(76) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int hammingDistance(int x, int y) { int r = x ^ y; return bitCount(r); } int bitCount(int x) { int res = 0; while (x) { ... 阅读全文
posted @ 2018-05-28 22:44 JTechRoad 阅读(84) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int splitArray(vector& nums, int m) { int _max = -1, _sum = 0; for (auto n : nums) { if (n > _max) _max = n; _sum += n; ... 阅读全文
posted @ 2018-05-27 15:28 JTechRoad 阅读(72) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-26 15:01 JTechRoad 阅读(78) 评论(0) 推荐(0) 编辑
摘要:class RandomizedSet { public: vector data; unordered_map m; // /** Initialize your data structure here. */ RandomizedSet() { } /** Inserts a value to the set.... 阅读全文
posted @ 2018-05-26 14:31 JTechRoad 阅读(104) 评论(0) 推荐(0) 编辑
摘要:递归 TLE DP 阅读全文
posted @ 2018-05-25 15:24 JTechRoad 阅读(85) 评论(0) 推荐(0) 编辑
摘要:/** * // This is the interface that allows for creating nested lists. * // You should not implement it, or speculate about its implementation * class NestedInteger { * public: * // Return ... 阅读全文
posted @ 2018-05-25 14:35 JTechRoad 阅读(76) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: bool increasingTriplet(vector& nums) { int i = INT_MAX, j = INT_MAX; for (int n : nums) { if (n <= i) { i = n; } ... 阅读全文
posted @ 2018-05-25 13:59 JTechRoad 阅读(71) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: unordered_set res; // DFS may produce dup result, use set to filter. vector removeInvalidParentheses(string s) { // Calculate rmL and rmR for the numbers o... 阅读全文
posted @ 2018-05-24 15:12 JTechRoad 阅读(144) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-23 13:29 JTechRoad 阅读(99) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: vector res; vector addOperators(string num, int target) { if (num.length() == 0) return res; helper(num, target, "", 0, 0, 0); return res; ... 阅读全文
posted @ 2018-05-22 15:05 JTechRoad 阅读(92) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int hIndex(vector& citations) { if (citations.size() == 0) return 0; int i = 0, j = citations.size(); while (i citations[pos]) j... 阅读全文
posted @ 2018-05-22 14:30 JTechRoad 阅读(71) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int hIndex(vector& citations) { int n = citations.size(); vector buck(n+1, 0); for (auto c : citations) { if (c > n) c... 阅读全文
posted @ 2018-05-22 13:37 JTechRoad 阅读(74) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: vector productExceptSelf(vector& nums) { if (nums.size() == 0) return vector(); vector res(nums.size(), 1); for (int i = 1; i = 0; i--) { ... 阅读全文
posted @ 2018-05-22 07:42 JTechRoad 阅读(64) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-22 07:33 JTechRoad 阅读(62) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-22 07:27 JTechRoad 阅读(56) 评论(0) 推荐(0) 编辑
摘要:Recurision, TLE. DP: 阅读全文
posted @ 2018-05-22 02:58 JTechRoad 阅读(131) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int maximalSquare(vector>& matrix) { int m = matrix.size(); if (m == 0) return 0; int n = matrix[0].size(); if (n == 0) return 0; vector> dp(m+1,... 阅读全文
posted @ 2018-05-21 22:28 JTechRoad 阅读(121) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: vector> getSkyline(vector>& buildings) { vector> v; for (const auto& b : buildings) { v.push_back({b[0], -b[2]}); v.push_back({b[1... 阅读全文
posted @ 2018-05-21 21:13 JTechRoad 阅读(73) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int findKthLargest(vector& nums, int k) { int left = 0, right = nums.size() - 1; while (true) { int p = partition(nums, left, right); ... 阅读全文
posted @ 2018-05-21 14:23 JTechRoad 阅读(82) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int minSubArrayLen(int s, vector& nums) { int w = 0, _sum = 0, res = INT_MAX; for (int i = 0; i = s) { res = min(res, i-w+1); ... 阅读全文
posted @ 2018-05-21 12:05 JTechRoad 阅读(61) 评论(0) 推荐(0) 编辑
摘要:class Node { public: char c; bool isWord; unordered_map children; Node(char c) { this->c = c; isWord = false; } }; class Trie { Node* root; Node* find... 阅读全文
posted @ 2018-05-21 09:23 JTechRoad 阅读(85) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class BSTIt... 阅读全文
posted @ 2018-05-21 09:00 JTechRoad 阅读(73) 评论(0) 推荐(0) 编辑
摘要:class LRUCache { public: list> q; unordered_map>::iterator> m; int cap; LRUCache(int capacity) { cap = capacity; } int get(int key) { if (!m.count(key)) ... 阅读全文
posted @ 2018-05-21 08:45 JTechRoad 阅读(76) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: bool wordBreak(string s, vector& wordDict) { int n = s.length(); if (n == 0) return false; unordered_set wordSet(wordDict.begin(), wordDict.end()); ... 阅读全文
posted @ 2018-05-21 00:57 JTechRoad 阅读(72) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for undirected graph. * struct UndirectedGraphNode { * int label; * vector neighbors; * UndirectedGraphNode(int x) : label(x) {}; * }; */ class Solution { public: ... 阅读全文
posted @ 2018-05-20 15:23 JTechRoad 阅读(70) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int longestConsecutive(vector& nums) { unordered_set s(nums.begin(), nums.end()); int res = 0; while (!s.empty()) { int p = *(s.begin(... 阅读全文
posted @ 2018-05-20 14:34 JTechRoad 阅读(83) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int ladderLength(string beginWord, string endWord, vector& wordList) { unordered_set s(wordList.begin(), wordList.end()); if (!s.count(endWord)) return 0... 阅读全文
posted @ 2018-05-20 14:27 JTechRoad 阅读(74) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: bool isPalindrome(string s) { int i = 0, j = s.length() - 1; while (i < j) { if (!isalnum(s[i])) i++; else if (!is... 阅读全文
posted @ 2018-05-20 14:16 JTechRoad 阅读(67) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: int maxProfit(vector& prices) { if (prices.size() == 0) return 0; int res = 0, _min = prices[0]; for (auto p : prices) { if (p < _min)... 阅读全文
posted @ 2018-05-20 14:09 JTechRoad 阅读(82) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for binary tree with next pointer. * struct TreeLinkNode { * int val; * TreeLinkNode *left, *right, *next; * TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL)... 阅读全文
posted @ 2018-05-20 13:43 JTechRoad 阅读(101) 评论(0) 推荐(0) 编辑
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ cla... 阅读全文
posted @ 2018-05-20 13:08 JTechRoad 阅读(83) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/decode-ways/description/ 阅读全文
posted @ 2018-05-20 12:52 JTechRoad 阅读(181) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/subsets-ii/description/ 阅读全文
posted @ 2018-05-20 07:28 JTechRoad 阅读(73) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/maximal-rectangle/description/ 阅读全文
posted @ 2018-05-20 04:32 JTechRoad 阅读(99) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/word-search/description/ 阅读全文
posted @ 2018-05-19 15:14 JTechRoad 阅读(100) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/subsets/description/ 阅读全文
posted @ 2018-05-19 14:49 JTechRoad 阅读(80) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/minimum-window-substring/description/ 阅读全文
posted @ 2018-05-19 14:44 JTechRoad 阅读(64) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/sort-colors/description/ 阅读全文
posted @ 2018-05-19 14:20 JTechRoad 阅读(100) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/simplify-path/description/ 阅读全文
posted @ 2018-05-19 14:05 JTechRoad 阅读(78) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/merge-intervals/description/ 阅读全文
posted @ 2018-05-19 13:26 JTechRoad 阅读(82) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/powx-n/description/ 阅读全文
posted @ 2018-05-19 13:12 JTechRoad 阅读(70) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/group-anagrams/description/ 阅读全文
posted @ 2018-05-19 12:56 JTechRoad 阅读(77) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/multiply-strings/description/ 阅读全文
posted @ 2018-05-19 07:36 JTechRoad 阅读(102) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/count-and-say/description/ 阅读全文
posted @ 2018-05-18 15:32 JTechRoad 阅读(111) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/reverse-nodes-in-k-group/description/ 阅读全文
posted @ 2018-05-18 14:45 JTechRoad 阅读(88) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/merge-k-sorted-lists/description/ 阅读全文
posted @ 2018-05-18 14:09 JTechRoad 阅读(82) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/valid-parentheses/description/ 阅读全文
posted @ 2018-05-18 13:48 JTechRoad 阅读(74) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ 阅读全文
posted @ 2018-05-18 13:32 JTechRoad 阅读(105) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/3sum/description/ 阅读全文
posted @ 2018-05-18 13:23 JTechRoad 阅读(110) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/regular-expression-matching/description/ DP: recursion 阅读全文
posted @ 2018-05-17 16:24 JTechRoad 阅读(105) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/excel-sheet-column-title/description/ 阅读全文
posted @ 2018-05-15 13:42 JTechRoad 阅读(69) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/merge-sorted-array/description/ 阅读全文
posted @ 2018-05-15 13:27 JTechRoad 阅读(66) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/most-profit-assigning-work/description/ 阅读全文
posted @ 2018-05-15 12:37 JTechRoad 阅读(218) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/submissions/detail/153740275/class Solution { public: int fourSumCount(vector& A, vector& B, vector& C, vector& D) { unordered_map CD_freq; for (auto i : C) ... 阅读全文
posted @ 2018-05-11 14:38 JTechRoad 阅读(94) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/path-sum-iii/description/ 阅读全文
posted @ 2018-05-11 14:14 JTechRoad 阅读(73) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/partition-equal-subset-sum/description/ 阅读全文
posted @ 2018-05-11 13:39 JTechRoad 阅读(82) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/pacific-atlantic-water-flow/description/ 阅读全文
posted @ 2018-05-10 15:28 JTechRoad 阅读(96) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/can-place-flowers/description/ First version: V2: 阅读全文
posted @ 2018-05-10 12:51 JTechRoad 阅读(80) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/network-delay-time/description/, we need to go to every node from K, calculate the max weight. Dijkstra: BFS: Bellman Fo 阅读全文
posted @ 2018-05-07 13:43 JTechRoad 阅读(144) 评论(0) 推荐(0) 编辑
摘要:DFS: Topological sort: 阅读全文
posted @ 2018-05-07 10:31 JTechRoad 阅读(105) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/course-schedule/description/ DFS, detect cycle. For each node, we have 3 states during DFS: 1) un-visited, 2) visiting, 阅读全文
posted @ 2018-05-07 10:24 JTechRoad 阅读(111) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/course-schedule-ii/description/ DFS: 阅读全文
posted @ 2018-05-07 01:08 JTechRoad 阅读(96) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/random-pick-index/description/ Reservoir Sampling 阅读全文
posted @ 2018-05-06 14:53 JTechRoad 阅读(84) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/daily-temperatures/description/ 阅读全文
posted @ 2018-05-06 13:59 JTechRoad 阅读(73) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/k-th-symbol-in-grammar/description/ 阅读全文
posted @ 2018-05-06 12:54 JTechRoad 阅读(89) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/partition-to-k-equal-sum-subsets/description/ Use DFS. We need to choose k group of numbers (each group sum to s). The s 阅读全文
posted @ 2018-05-06 04:11 JTechRoad 阅读(149) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/minimum-distance-between-bst-nodes/description/ 阅读全文
posted @ 2018-05-05 15:23 JTechRoad 阅读(81) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/accounts-merge/description/ 阅读全文
posted @ 2018-05-05 15:04 JTechRoad 阅读(210) 评论(0) 推荐(0) 编辑
摘要:Use array. Use map. 阅读全文
posted @ 2018-05-05 09:13 JTechRoad 阅读(110) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/friend-circles/description/ 阅读全文
posted @ 2018-05-05 09:01 JTechRoad 阅读(111) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/number-of-islands/description/ 阅读全文
posted @ 2018-05-05 08:52 JTechRoad 阅读(90) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/redundant-connection/description/ Use map to do Union Find. 阅读全文
posted @ 2018-05-04 15:43 JTechRoad 阅读(112) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/sort-characters-by-frequency/description/ 阅读全文
posted @ 2018-05-04 15:01 JTechRoad 阅读(108) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/non-overlapping-intervals/description/ Greedy. Sort by (start,-end). Scan from left to right, if we see 2 intervals over 阅读全文
posted @ 2018-05-04 14:55 JTechRoad 阅读(139) 评论(0) 推荐(0) 编辑
摘要:When we see ordering, consider stack. When we process item one by one, but I can't process current item, we move to next item (and that item might dep 阅读全文
posted @ 2018-05-04 14:33 JTechRoad 阅读(148) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/next-greater-element-ii/description/ 阅读全文
posted @ 2018-05-04 14:29 JTechRoad 阅读(125) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/next-greater-element-i/description/ 阅读全文
posted @ 2018-05-04 14:16 JTechRoad 阅读(114) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/shortest-completing-word/description/ 阅读全文
posted @ 2018-05-04 08:25 JTechRoad 阅读(119) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/01-matrix/description/ Use BFS to search. First I tried to BFS every 0, the problem is each 1 may need to be visited for 阅读全文
posted @ 2018-05-04 00:02 JTechRoad 阅读(132) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/find-eventual-safe-states/description/ 阅读全文
posted @ 2018-05-03 14:22 JTechRoad 阅读(143) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/maximum-width-of-binary-tree/description/ 阅读全文
posted @ 2018-05-03 13:55 JTechRoad 阅读(130) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/top-k-frequent-words/description/ 阅读全文
posted @ 2018-05-03 13:17 JTechRoad 阅读(149) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/expressive-words/description/ 阅读全文
posted @ 2018-05-03 13:01 JTechRoad 阅读(271) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/valid-parenthesis-string/description/ 这个题的难点在增加了*,*可能是(也可能是)。是(的前提是:右边有多余的)。是)的前提是:左边有多余的(。所以他们的位置信息是重要的。 Valid Parenthe 阅读全文
posted @ 2018-05-03 08:30 JTechRoad 阅读(116) 评论(0) 推荐(0) 编辑
摘要:Brute force (time out) Preprocess S: 阅读全文
posted @ 2018-05-02 23:44 JTechRoad 阅读(121) 评论(0) 推荐(0) 编辑
摘要:DP 阅读全文
posted @ 2018-05-02 12:41 JTechRoad 阅读(158) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: double largestSumOfAverages(vector& A, int K) { int n = A.size(); // dp[k][i]: largestSumOfAverages of [0,i] with up to k partitions // d... 阅读全文
posted @ 2018-05-02 02:47 JTechRoad 阅读(248) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/cheapest-flights-within-k-stops/description/ DFS (slow) BFS (seems not able to use BFS as below, we may have to record e 阅读全文
posted @ 2018-05-01 23:33 JTechRoad 阅读(419) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.com/problems/largest-number-at-least-twice-of-others/description/ 阅读全文
posted @ 2018-05-01 12:42 JTechRoad 阅读(109) 评论(0) 推荐(0) 编辑
摘要:When to use binary search: * 我们知道解空间在一个区间 [i,j] * valid解是解空间的一个点(也可以看作是只有一个点的range)或者一个range的起始点或者结束点 * range之外的点都不是valid解 想法一般都两种: * 直接找到解 (比如classic 阅读全文
posted @ 2018-05-01 08:32 JTechRoad 阅读(204) 评论(0) 推荐(0) 编辑