leetcode 121. Best Time to Buy and Sell Stock(最佳时间买卖) 假设您有一个数组,其中的ith元素是第i天给定股票的价格。 如果你只被允许完成至多一笔交易(即买一份,卖一份股 […]
leetcode 111. Minimum Depth of Binary Tree(二叉树最小深度) Given a binary tree, find its minimum depth. The minimu […]
leetcode 110. Balanced Binary Tree(平衡树判断) Given a binary tree, determine if it is height-balanced […]
leetcode Convert Sorted Array to Binary Search Tree(有序列表转化为BST) Given an array where elements are sorted in ascending o […]
leetcode 107. Binary Tree Level Order Traversal II(二叉树分层排序) Given a binary tree, return the bottom-up level order t […]
leetcode 104. Maximum Depth of Binary Tree(二叉树深度-DFS方法) Given a binary tree, find its maximum depth. The maximu […]
leetcode 83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such […]