LeetCode Weekly Contest 98
杨领well
君子食无求饱,居无求安,敏于事而慎于言,就有道而正焉。
展开
-
LeetCode: Weekly Contest 98
LeetCode: Weekly Contest 98 题解列表 1. LeetCode: 888. Fair Candy Swap 题解 2. LeetCode: 890. Find and Replace Pattern 题解 3. LeetCode: 889. Construct Binary Tree from Preorder and Postorder Traversal...原创 2018-08-19 11:08:21 · 257 阅读 · 0 评论 -
LeetCode: 888. Fair Candy Swap
LeetCode: 888. Fair Candy Swap 题目描述 Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of candy that Bob...原创 2018-08-19 11:12:23 · 444 阅读 · 0 评论 -
LeetCode: 890. Find and Replace Pattern
LeetCode: 890. Find and Replace Pattern 题目描述 You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there exists a perm...原创 2018-08-19 11:17:37 · 488 阅读 · 0 评论 -
LeetCode: 889. Construct Binary Tree from Preorder and Postorder Traversal
LeetCode: 889. Construct Binary Tree from Preorder and Postorder Traversal 题目描述 Return any binary tree that matches the given preorder and postorder traversals. Values in the traversals pre and pos...原创 2018-08-19 11:24:15 · 416 阅读 · 0 评论 -
LeetCode: 891. Sum of Subsequence Widths
LeetCode: 891. Sum of Subsequence Widths 题目描述 Given an array of integers A, consider all non-empty subsequences of A. For any sequence S, let the width of S be the difference between the maximum an...原创 2018-08-19 12:06:26 · 689 阅读 · 0 评论