博客专栏  >  综合   >  leetcode

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
    701
  • 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
    649
  • 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
    733
  • 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
    651
  • 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
    421
  • 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
    622
  • 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
    644
  • 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
    671
  • 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
    424
  • 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
    361
  • LeetCode之First Missing Positive

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

    2014-03-20 21:48
    533
  • 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
    618
  • 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
    432
  • 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
    556
  • 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
    523
  • 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
    553
  • 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
    530
  • 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
    722
  • LeetCode之Linked List Cycle

    Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without us...

    2014-03-22 01:23
    407
  • LeetCode之Linked List Cycle II

    Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Fol...

    2014-03-22 01:35
    622

img博客搬家
img撰写博客
img专家申请
img意见反馈
img返回顶部