[LeetCode] 646. Maximum Length of Pair Chain

Problem: You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair ...

2017-11-30 11:50:54

阅读数 61

评论数 0

[LeetCode] 695. Max Area of Island

Problem: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal...

2017-11-28 19:19:11

阅读数 106

评论数 0

[LeetCode] 515. Find Largest Value in Each Tree Row

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

2017-11-18 14:32:33

阅读数 72

评论数 0

[LeetCode] 647. Palindromic Substrings

Problem : Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes o...

2017-11-12 13:34:42

阅读数 76

评论数 0

[LeetCode] 669.Trim a Binary Search Tree

Problem : Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R &g...

2017-11-08 19:51:52

阅读数 77

评论数 0

[LeetCode] 617. Merge Two Binary Trees

Problem : Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the...

2017-11-08 13:27:10

阅读数 59

评论数 0

[LeetCode] 654. Maximum Binary Tree

Problem: Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in ...

2017-11-07 19:00:22

阅读数 71

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭