博客专栏  >  编程语言   >  LeetCode专栏

LeetCode专栏

针对LeetCode上的题目给出详细思路解释以及AC代码示例

关注
0 已关注
79篇博文
  • LeetCode 108. Convert Sorted Array to Binary Search Tree

    108. Convert Sorted Array to Binary Search Tree一、问题描述 Given an array where elements are sorted in ...

    2017-07-11 17:44
    294
  • LeetCode 111. Minimum Depth of Binary Tree

    111. Minimum Depth of Binary Tree一、问题描述 Given a binary tree, find its minimum depth. The mini...

    2017-07-11 17:44
    289
  • LeetCode 104. Maximum Depth of Binary Tree

    104. Maximum Depth of Binary Tree一、问题描述 Given a binary tree, find its maximum depth. The maxi...

    2017-07-10 13:57
    325
  • LeetCode 107. Binary Tree Level Order Traversal II

    107. Binary Tree Level Order Traversal II一、问题描述 Given a binary tree, return the bottom-up level or...

    2017-07-10 13:57
    345
  • LeetCode 101. Symmetric Tree

    101. Symmetric Tree一、问题描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetr...

    2017-07-10 13:17
    269
  • LeetCode 10. Same Tree

    10. Same Tree一、问题描述 Given two binary trees, write a function to check if they are equal or not. ...

    2017-07-10 13:17
    230
  • LeetCode 69. Sqrt(x)

    69. Sqrt(x)一、问题描述 Implement int sqrt(int x). Compute and return the square root of x. 二、输入输出三...

    2017-07-06 20:35
    398
  • LeetCode 67. Add Binary

    67. Add Binary一、问题描述 Given two binary strings, return their sum (also a binary string). 二、输入输出For ...

    2017-07-06 19:54
    431
  • LeetCode 58. Length of Last Word

    58. Length of Last Word一、问题描述 Given a string s consists of upper/lower-case alphabets and empty sp...

    2017-07-05 19:13
    409
  • LeetCode 28. Implement strStr()

    28. Implement strStr()一、问题描述 Implement strStr(). Returns the index of the first occurrence of...

    2017-07-05 17:37
    462
  • LeetCode 20. Valid Parentheses

    20. Valid Parentheses一、问题描述 Given a string containing just the characters '(', ')', '{', '}', '[' ...

    2017-07-05 16:03
    335
  • LeetCode 14. Longest Common Prefix

    14. Longest Common Prefix一、问题描述 Write a function to find the longest common prefix string amongst ...

    2017-07-05 16:03
    328
  • LeetCode 9. Palindrome Number

    9. Palindrome Number一、问题描述 Determine whether an integer is a palindrome. Do this without extra spa...

    2017-07-04 16:34
    233
  • LeetCode 7. Reverse Integer

    7. Reverse Integer一、问题描述 Reverse digits of an integer. **Have you thought about this?**Here a...

    2017-07-04 15:52
    213
  • LeetCode 4. Median of Two Arrays

    4. Median of Two Arrays一、问题描述 There are two sorted arrays nums1 and nums2 of size m and n respecti...

    2017-07-04 00:42
    397
  • LeetCode 3. Longest Substring Without Repeating Characters

    3. Longest Substring Without Repeating Characters一、问题描述 Given a string, find the length of the lon...

    2017-07-03 17:30
    288
  • LeetCode 617. Merge Two Binary Trees

    617. Merge Two Binary Trees一、问题描述 Given two binary trees and imagine that when you put one of them...

    2017-06-26 15:21
    348
  • LeetCode 500. Keyboard Row

    500. Keyboard Row一、问题描述 Given a List of words, return the words that can be typed using letters of...

    2017-06-26 14:59
    278
  • LeetCode 2. Add Two Numbers

    2. Add Two Numbers 一、问题描述 You are given two non-empty linked lists representing two non-negative i...

    2017-06-23 16:42
    443
  • LeetCode 61. Rotate List

    61. Rotate List 一、问题描述 Given a list, rotate the list to the right by k places, where k is non-nega...

    2017-06-22 17:33
    435

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