- 博客(5)
- 收藏
- 关注
原创 [Leetcode][Medium] 216. Combination Sum III
Problem Example Input: Output: Explanation: Answer Explanation pattern.
2019-06-18 13:52:11
180
原创 [Leetcode][Medium] 721. Accounts Merge
Problem https://leetcode.com/problems/accounts-merge/ Answer class Solution { public: vector<vector<string>> accountsMerge(vector<vector<string>>& accounts) { u...
2019-06-17 17:54:47
165
原创 [Leetcode][Medium] 890. Find and Replace Pattern
Problem You have a list of words and a pattern, and you want to know which words in words matches the pattern. Example Input: words = [“abc”,“deq”,“mee”,“aqq”,“dkd”,“ccc”], pattern = “abb” Output: [“...
2019-05-28 12:52:12
141
原创 [Leetcode][Medium] 889. Construct Binary Tree from Preorder and Postorder Traversal
文章目录ProblemExampleAnswerExplanation Problem Return 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
133
原创 [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
131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅