- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 【LeetCode】442. Find All Duplicates in an Array
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twice in this array. Could you do it without ex
2017-08-15 15:33:09 215
原创 【LeetCode】513. 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 3 Output: 1 Example 2: Input: 1 / \ 2 3
2017-08-11 11:44:21 225
原创 【LeetCode】647. Palindromic Substrings
Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrings even they consis
2017-08-11 10:07:48 376
原创 【LeetCode】654. Maximum Binary Tree
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 the array.The left subtree is the maximum tree constructed f
2017-08-08 14:37:55 310
原创 【LeetCode】496. Next Greater Element I
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of
2017-08-01 10:42:59 218
原创 【LeetCode】463. Island Perimeter
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely
2017-08-01 09:53:13 189
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人