### leetcode

leetcode解题报告

0 已关注
46篇博文
• #### LeetCode之Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). Fo...

2014-04-05 14:18
767
• #### LeetCode之Binary Tree Zigzag Level Order Traversal

Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to...

2014-04-05 14:26
707
• #### LeetCode之Binary Tree Level Order Traversal

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right,...

2014-04-05 12:57
806
• #### LeetCode之Binary Tree Level Order Traversal II

Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left...

2014-04-05 13:12
706
• #### LeetCode之Same Tree

Given two binary trees, write a function to check if they are equal or not. Two binary trees are ...

2014-03-20 14:25
478
• #### LeetCode之Balanced Binary Tree

Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced bina...

2014-03-20 18:40
675
• #### LeetCode之Binary Tree Preorder Traversal

Given a binary tree, return the preorder traversal of its nodes' values. For example: Given bina...

2014-03-20 19:32
690
• #### LeetCode之Binary Tree Inorder Traversal

Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binar...

2014-03-20 19:54
716
• #### LeetCode之Remove Element

Given an array and a value, remove all instances of that value in place and return the new length. ...

2014-03-20 20:31
483
• #### LeetCode之Merge Sorted Array

Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assum...

2014-03-20 20:47
398
• #### LeetCode之First Missing Positive

Given an unsorted integer array, find the first missing positive integer. For example, Given [1,...

2014-03-20 21:48
606
• #### LeetCode之Spiral Matrix

Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral or...

2014-03-21 12:36
686
• #### LeetCode之Spiral Matrix II

Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. F...

2014-03-21 12:54
502
• #### LeetCode之Rotate Image

You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise...

2014-03-21 13:10
601
• #### LeetCode之Container With Most Water

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai)...

2014-03-21 14:14
593
• #### LeetCode之Set Matrix Zeroes

Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. D...

2014-03-21 19:46
640
• #### LeetCode之Two Sum

Given an array of integers, find two numbers such that they add up to a specific target number. T...

2014-03-21 20:54
574
• #### LeetCode之Reorder List

Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must d...

2014-03-22 01:10
773