[LeetCode] Find Mode in Binary Search Tree 找二分搜索数的众数

 Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST.Assume

[LeetCode] Keyboard Row 键盘行

 Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the im

[LeetCode] Base 7 基数七

 Given an integer, return its base 7 string representation.Example 1:Input: 100Output: "202" Example 2:Input: -7Output: "-10" Note:&nbs

[LeetCode] Find Largest Value in Each Tree Row 找树每行最大的结点值

 You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3

[LeetCode] Diagonal Traverse 对角线遍历

 Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image.Example:In

[LeetCode] Find Bottom Left Tree Value 寻找最左下树结点的值

 Given a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1 Example 2: Input:

[LeetCode] Next Greater Element I 下一个较大的元素之一

 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums

[LeetCode] Teemo Attacking 提莫攻击

 In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking&

[LeetCode] Target Sum 目标和

 You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should ch

[LeetCode] Construct the Rectangle 构建矩形

 For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your