![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
清凉sama
这个作者很懒,什么都没留下…
展开
-
[Leetcode] 86. Partition List
题目Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the original relative order of the nodes in each ...原创 2019-09-06 23:40:52 · 103 阅读 · 0 评论 -
[Leetcode] 113. Path Sum Ⅱ
题目Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.Note:A leaf is a node with no children.Example:Given the below binary tree andsum = 22...原创 2019-09-07 18:25:24 · 122 阅读 · 0 评论 -
[Leetcode] 173. Binary Search Tree Iterator
题目Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next smallest number in the BST.Example:...原创 2019-09-13 22:22:30 · 105 阅读 · 0 评论 -
[Leetcode] 230. Kth Smallest Element in a BST
题目Given a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is always valid, 1 ≤ k ≤ BST's total elements.Example 1:Input: root = ...原创 2019-09-14 12:55:30 · 136 阅读 · 0 评论 -
[Leetcode] 134. Gas Station
题目:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[i]of gas to travel from stationito...原创 2019-09-18 17:28:40 · 121 阅读 · 0 评论