博客专栏  >  编程语言   >  LeetCode练习笔记

LeetCode练习笔记

Practice makes Perfect !

关注
0 已关注
9篇博文
  • 动态规划(DP)问题分析汇总

    问题一: LeetCode 53. Maximum Subarray求最小和 Find the contiguous subarray within an array (containing at...

    2017-03-14 11:07
    107
  • 贪心Greedy

    先看一下这个问题: LeetCode 55. Jump Game Question Given an array of non-negative integers, you are ini...

    2017-03-15 10:54
    77
  • LeetCode 75 Sort Colors

    Given an array with n objects colored red, white or blue, sort them so that objects of the same colo...

    2017-04-09 21:55
    300
  • leetcode 练习——add two numbers (Java)

    /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode...

    2016-03-10 21:01
    205
  • Dynamic Programming 动态规划问题 DP

    动态规划问题通过利用重叠子问题,优化子结构,以空间换时间,来达到优化时间复杂度的目的。 分类 主要分为两大类:自顶向下Top-down(经常被称作:memorization);  自底向上Bottom...

    2016-06-13 11:27
    292
  • leetcde练习——Implement strStr()

    Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needl...

    2016-06-20 10:19
    247
  • LeetCode 101. Symmetric Tree

    分类 :Tree; BFS; DFS  问题描述: Given a binary tree, check whether it is a mirror of itself (ie, sym...

    2016-11-29 19:55
    86
  • LeetCode 100. Same Tree

    分类:Tree ;DFS 问题描述: Given two binary trees, write a function to check if they are equal or not....

    2016-11-29 20:38
    100
  • LeetCode 27. Remove Element

    分类: Array ; Two Points 问题描述: Given an array and a value, remove all instances of that value in...

    2016-11-30 21:31
    182

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