博客专栏  >  编程语言   >  LeetCode

LeetCode

leetcode算法题

关注
1 已关注
25篇博文
  • leetcode056_merge_intervals

    Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[...

    2018-03-16 15:21
    16
  • leetcode055_Jump_game

    /** * @author 作者 : coderlong * @version 创建时间:2018年3月16日 下午12:56:08 * 类说明: 愚蠢的解法, 还是要 贪心算法 */ publi...

    2018-03-16 15:22
    23
  • leetcode801_Mininum_SwapMakesSequencesIncreasing

    title: leetcode801_Mininum_SwapMakesSequencesIncreasing date: 2018-3-20 14:18:40 categories: ...

    2018-03-20 13:26
    276
  • leetocode213_House_Roubber2

    前面写过一道,在一条街道上如何抢劫的最多,这道题是那道题的继承。关键之处在于,前面的那个街道,变成了环形的。 使用java写出DP方程,dp[0] = nums[0], dp[1] = Math.m...

    2018-04-02 16:37
    17
  • leetcode221_Maximal_Square

    我们在来看一道DP问题, 原题是这样的: Given a 2D binary matrix filled with 0’s and 1’s, find the largest square co...

    2018-04-02 17:22
    22
  • 357. Count Numbers with Unique Digits

    Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. ...

    2018-04-10 19:55
    22
  • 非递归中序遍历的一点解释

    递归形式的前序,中序,后序,便利大家应该都是比较熟悉的。但是,有时候,在针对一些对BST遍历过程中节点状态控制的时候,使用非递归形式的算法,往往更加有效,代码更加简洁。 1. 先把二叉树的非递归中序...

    2018-04-16 16:54
    27
  • 二叉树路径的最大值

    Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence...

    2018-04-19 10:22
    49
  • LeetCode 43. Multiply Strings

    自己来实现字符串的 mul函数, 给定的字符串符合数字的要求,very simple Solution 考虑清楚中间的carry, index 就行了. class Solution { ...

    2018-04-26 17:03
    14
  • leetcode 417. Pacific Atlantic Water Flow

    原题目: Given an m x n matrix of non-negative integers representing the height of each unit cell in a ...

    2018-04-27 16:26
    25
  • leetcode 473. Matchsticks to Square

    原题目: Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little ...

    2018-04-28 16:14
    14
  • leetcode 547. Friend Circles

    There are N students in a class. Some of them are friends, while some are not. Their friendship is t...

    2018-05-03 10:39
    28
  • leetcode 802. Find Eventual Safe States

    fdfg

    2018-05-09 12:24
    32
  • leetcode 785. Is Graph Bipartite?

    Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipar...

    2018-05-09 12:35
    103
  • Lettter_Case_Permutation

    title: 784. Letter Case Permutation date: 2018-3-4 21:18:40 categories: - Algorithm tags: ...

    2018-03-05 19:57
    19
  • Longest-Substring-Without-Repeating-Characters

    title: Longest Substring Without Repeating Characters date: 2017-10-24 22:58:49 categories: -...

    2018-03-16 14:22
    29
  • leetcode797_all_paths_from_source_to_target

    title: leetcode797_all_paths_from_source_to_target date: 2018-1-11 14:48:38 categories: - lee...

    2018-03-16 14:25
    165
  • leetcode257_BinaryTreePaths

    title: leetcode257_BinaryTreePaths date: 2018-3-11 14:18:40 categories: - leetcode tags: ...

    2018-03-16 14:25
    31
  • 538. Convert BST to Greater Tree

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

    2018-01-05 22:10
    59
  • leetcode453_Minimum_moves_to_Equal_array

    title: stringComplare date: 2017-10-26 21:00:54 categories: - java tags: - JVM - jav...

    2017-12-18 23:07
    75

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