排序:
默认
按更新时间
按访问量

[leetcode] 329. Longest Increasing Path in a Matrix

题目: Given an integer matrix, find the length of the longest increasing path.From each cell, you can either move to four directions: left, right, up ...

2016-03-07 23:29:11

阅读数:344

评论数:0

[leetcode] 334. Increasing Triplet Subsequence

题目: Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.Formally the function should: Return tr...

2016-02-27 11:19:29

阅读数:347

评论数:0

[leetcode] 310. Minimum Height Trees

题目: For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible...

2016-02-23 15:56:23

阅读数:469

评论数:0

[leetcode] 309. Best Time to Buy and Sell Stock with Cooldown

题目: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may c...

2016-02-22 11:40:30

阅读数:1412

评论数:2

[leetcode] 306. Additive Number

题目: Additive number is a string whose digits can form additive sequence.A valid additive sequence should contain at least three numbers. Except for ...

2016-02-21 11:29:26

阅读数:721

评论数:0

[leetcode] 299. Bulls and Cows

题目: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Eac...

2016-02-21 11:13:20

阅读数:275

评论数:0

[leetcode] 304. Range Sum Query 2D - Immutable

题目: Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner...

2016-02-18 15:34:41

阅读数:210

评论数:0

[leetcode] 301. Remove Invalid Parentheses

题目: Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.Note: The input string may...

2016-02-18 10:44:15

阅读数:994

评论数:0

[leetcode] 300. Longest Increasing Subsequence

题目: Given an unsorted array of integers, find the length of longest increasing subsequence.For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The lo...

2016-02-17 20:08:36

阅读数:291

评论数:0

[leetcode] 295. Find Median from Data Stream

题目:Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the...

2016-02-04 10:26:38

阅读数:357

评论数:0

[leetcode] 292.Nim Game

题目: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to ...

2015-10-14 20:51:21

阅读数:788

评论数:0

[leetcode] 287.Find the Duplicate Number

题目: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate element must ...

2015-09-28 13:25:09

阅读数:1022

评论数:1

[leetcode] 275.H-Index II

题目: Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? 题意: 这道题目是接274题而来,不过这次的引用次数...

2015-09-05 17:00:53

阅读数:582

评论数:0

[leetcode] 274.H-Index

题目: Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher’s h-index.Acc...

2015-09-05 16:58:02

阅读数:1234

评论数:0

[leetcode] 174.Dungeon Game

题目: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid ou...

2015-09-01 15:20:55

阅读数:306

评论数:0

[leetcode] 140.Word Break II

题目: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all s...

2015-09-01 14:03:34

阅读数:267

评论数:0

[leetcode] 139.Word Break

题目: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words...

2015-09-01 13:23:00

阅读数:255

评论数:0

[leetcode] 67.Add Binary

题目: Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”. 题意: 给定两个二进制的字符串,返回它们的和。 思路: ...

2015-08-31 23:39:48

阅读数:222

评论数:0

[leetcode] 49.Group Anagrams

题目: Given an array of strings, group anagrams together.For example, given: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Return:[ [“ate”, “eat”,”...

2015-08-31 23:31:38

阅读数:247

评论数:0

[leetcode] 115.Distinct Subsequences

题目: Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed f...

2015-08-31 22:36:46

阅读数:235

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭