![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 61
warteac
这个作者很懒,什么都没留下…
展开
-
Leetcode 99. Recover Binary Search Tree
Leetcode 99. Recover Binary Search Tree Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n)...原创 2018-07-19 10:33:22 · 139 阅读 · 0 评论 -
leetcode 11. Container With Most Water
Description Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,...原创 2018-07-15 09:01:39 · 114 阅读 · 0 评论 -
Leetcode 680. Valid Palindrome II
Leetcode 680. Valid Palindrome II Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: “aba” Output: True E...原创 2018-07-29 21:31:37 · 171 阅读 · 0 评论 -
Leetcode 876. Middle of the Linked List
Leetcode 876. Middle of the Linked List Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middle n...原创 2018-07-29 22:00:48 · 396 阅读 · 0 评论 -
Leetcode 42. Trapping Rain Water
Leetcode 42. Trapping Rain Water Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. The abo...原创 2018-07-22 16:51:47 · 142 阅读 · 0 评论 -
Leetcode 142. Linked List Cycle II
142. Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. Follow up: Can you solve...原创 2018-08-12 14:55:33 · 145 阅读 · 0 评论 -
Leetcode 804. Unique Morse Code Words
804. Unique Morse Code Words International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: “a” maps to “.-“, “b” maps to “-…”, “c” ma...原创 2018-08-12 15:17:31 · 199 阅读 · 0 评论