- 博客(5)
- 收藏
- 关注
原创 [Leetcode][Medium] 216. Combination Sum III
ProblemExampleInput:Output:Explanation:AnswerExplanationpattern.
2019-06-18 13:52:11 102
原创 [Leetcode][Medium] 721. Accounts Merge
Problemhttps://leetcode.com/problems/accounts-merge/Answerclass Solution {public: vector<vector<string>> accountsMerge(vector<vector<string>>& accounts) { u...
2019-06-17 17:54:47 91
原创 [Leetcode][Medium] 890. Find and Replace Pattern
ProblemYou have a list of words and a pattern, and you want to know which words in words matches the pattern.ExampleInput: words = [“abc”,“deq”,“mee”,“aqq”,“dkd”,“ccc”], pattern = “abb”Output: [“...
2019-05-28 12:52:12 75
原创 [Leetcode][Medium] 889. Construct Binary Tree from Preorder and Postorder Traversal
文章目录ProblemExampleAnswerExplanationProblemReturn any binary tree that matches the given preorder and postorder traversals.Values in the traversals pre and post are distinct positive integers.Examp...
2019-05-27 20:42:54 71
原创 [Leetcode][Easy] 942. DI String Match
这里写自定义目录标题vector<int> diStringMatch(string S) { int left = 0, right = S.size(); vector<int> res; for (char &c : S) res.push_back(c == 'I' ? left++ ...
2019-05-25 15:46:13 71
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人