LeetCode Contest
杨领well
君子食无求饱,居无求安,敏于事而慎于言,就有道而正焉。
展开
-
LeetCode: Weekly Contest 91
LeetCode: Weekly Contest 91 立个 flag: 希望以后能够每周参加 LeetCode 的周赛。 P.S. 比赛时写的代码可能不太具有可读性。题解列表1. LeetCode: 860. Lemonade Change 题解这道题是签到题,利用贪心思想,每次尽量找面额大的钞票。2. LeetCode: 863. All Nodes D...原创 2018-07-01 15:48:56 · 268 阅读 · 0 评论 -
LeetCode:Weekly Contest 101
LeetCode:Weekly Contest 101题目描述1. LeetCode: 900. RLE Iterator 题解2. LeetCode: 901. Online Stock Span 题解3. LeetCode: 902. Numbers At Most N Given Digit Set 题解4. LeetCode: 903. Valid Permutat...原创 2018-09-09 17:52:36 · 375 阅读 · 0 评论 -
LeetCode: Weekly Contest 100
LeetCode: Weekly Contest 100题目描述1. LeetCode: 896. Monotonic Array 题解2. LeetCode: 897. Increasing Order Search Tree 题解3. LeetCode: 898. Bitwise ORs of Subarrays 题解4. LeetCode: 899. Orderl...原创 2018-09-02 16:38:14 · 202 阅读 · 0 评论 -
LeetCode: Weekly Contest 99
LeetCode: Weekly Contest 99题解列表LeetCode: 892. Surface Area of 3D Shapes 题解LeetCode: 893. Groups of Special-Equivalent Strings 题解LeetCode: 894. All Possible Full Binary Trees 题解LeetCode: 8...原创 2018-08-26 11:14:56 · 388 阅读 · 0 评论 -
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 · 280 阅读 · 0 评论 -
LeetCode: Weekly Contest 94
LeetCode: Weekly Contest 94题解列表1. LeetCode: 872. Leaf-Similar Trees 题解 签到题。分别中序遍历两棵树,按顺序记录各自的叶子,然后比较是否相等。2.LeetCode: 874. Walking Robot Simulation 题解 模拟机器人行走的过程,并记录到达的每个位置与原点的距离的最大值。...原创 2018-07-22 12:54:06 · 254 阅读 · 0 评论 -
LeetCode: Weekly Contest 95
LeetCode: Weekly Contest 95题解列表1. LeetCode: 876. Middle of the Linked List 题解2.LeetCode: 877. Stone Game 题解3.LeetCode: 878. Nth Magical Number 题解4.LeetCode: 879. Profitable Schemes 题解...原创 2018-07-29 11:11:32 · 253 阅读 · 0 评论 -
LeetCode: Weekly Contest 93
LeetCode: Weekly Contest 93题解列表1. LeetCode: 868. Binary Gap 题解2. LeetCode: 869. Reordered Power of 2 题解3. LeetCode: 870. Advantage Shuffle 题解4. LeetCode: 871. Minimum Number of Refueling S...原创 2018-07-15 11:06:29 · 203 阅读 · 0 评论 -
LeetCode: Weekly Contest 92
LeetCode: Weekly Contest 92题解列表1. LeetCode: 868. Transpose Matrix 题解第一题照例是签到题, 根据矩阵的转置定义,行列互换。2.LeetCode: 866. Smallest Subtree with all the Deepest Nodes 题解关于二叉树的题,照例用递归分治思想求解。3. LeetCode...原创 2018-07-08 16:15:25 · 350 阅读 · 0 评论