博客专栏  >  编程语言   >  LeetCode刷题笔记

LeetCode刷题笔记

记录刷题的思路和代码

关注
1 已关注
71篇博文
  • 128. Longest Consecutive Sequence

    Given an unsorted array of integers, find the length of the longest consecutive elements sequence. F...

    2017-06-02 09:09
    113
  • 27. Remove Element

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

    2017-06-14 23:26
    75
  • Leetcode 98. Validate Binary Search Tree

    Leetcode 98. Validate Binary Search Tree Given a binary tree, determine if it is a valid bi...

    2017-09-04 09:16
    329
  • Leetcode 67. Add Binary

    Leetcode 67. Add Binary ———————– Given two binary strings, return their sum (also a binary ...

    2017-08-30 10:34
    98
  • Leetcode 523.Continuous Subarray Sum

    Leetcode 523.Continuous Subarray Sum Given a list of non-negative numbers and a target inte...

    2017-09-01 10:26
    263
  • Leetcode 53. Maximum Subarray

    Leetcode 53. Maximum Subarray Find the contiguous subarray within an array (containing at l...

    2017-09-01 13:38
    249
  • Leetcode 653. Two Sum IV - Input is a BST

    Leetcode 653. Two Sum IV - Input is a BST —————————————– Given a Binary Search Tree and a ta...

    2017-08-30 09:38
    589
  • Leetcode 415. Add Strings

    Leetcode 415. Add Strings Given two non-negative integers num1 and num2 represented as stri...

    2017-08-30 10:19
    246
  • 1、Two Sum

    Given an array of integers, return indices of the two numbers such that they add up to a specific ta...

    2017-08-28 15:14
    541
  • LeetCode 236. Lowest Common Ancestor of a Binary Tree

    LeetCode 236. Lowest Common Ancestor of a Binary Tree Given a binary tree, find the lowest ...

    2017-08-28 16:43
    405
  • LeetCode 235. Lowest Common Ancestor of a Binary Search Tree

    Lowest Common Ancestor of a Binary Search Tree Given a binary search tree (BST), find the l...

    2017-08-28 16:51
    363
  • 538. Convert BST to Greater Tree

    Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original B...

    2017-07-18 15:12
    156
  • 171. Excel Sheet Column Number

    Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, retur...

    2017-07-18 23:22
    207
  • 263. Ugly Number

    Write a program to check whether a given number is an ugly number. Ugly numbers are pos...

    2017-07-19 23:30
    100
  • 79. Word Search

    Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from l...

    2017-07-13 12:10
    91
  • 530. Minimum Absolute Difference in BST

    Given a binary search tree with non-negative values, find the minimum absolute difference between ...

    2017-07-13 14:10
    95
  • 637. Average of Levels in Binary Tree

    Given a non-empty binary tree, return the average value of the nodes on each level in the form of an...

    2017-07-17 21:17
    689
  • 599. Minimum Index Sum of Two Lists

    599. Minimum Index Sum of Two Lists Suppose Andy and Doris want to choose a restaurant...

    2017-07-06 17:06
    327
  • 蛇形矩阵

    题目描述 蛇形矩阵是由1开始的自然数依次排列成的一个矩阵上三角形。 样例输入 5 样例输出 1 3 6 10 15 2 5 9 14 4 8 13...

    2017-07-01 20:56
    150
  • Leetcode 606. Construct String from Binary Tree

    Leetcode 606. Construct String from Binary Tree ———————————————– You need to construct a str...

    2017-07-04 13:12
    664
img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部