- 博客(30)
- 资源 (20)
- 收藏
- 关注
原创 Leetcode 细节实现 Set Matrix Zeroes
Set Matrix Zeroes Total Accepted: 18139 Total Submissions: 58671My Submissions Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show
2014-09-28 23:50:02 857
原创 Leetcode dp Interleaving String
Interleaving String Total Accepted: 15409 Total Submissions: 79580My Submissions Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 =
2014-09-21 20:23:21 740
原创 Leetcode dp Distinct Subsequences
Distinct Subsequences Total Accepted: 15484 Total Submissions: 62324My Submissions Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of
2014-09-16 21:31:26 784
原创 Leetcode dp Edit Distance
Edit Distance Total Accepted: 14997 Total Submissions: 59129My Submissions Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each oper
2014-09-16 17:47:06 744 1
原创 Leetcode dfs Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal Total Accepted: 14363 Total Submissions: 54254My Submissions Given inorder and postorder traversal of a tree, construct the bina
2014-09-11 07:12:22 788
原创 Leetcode dfs&dp Triangle
Triangle Total Accepted: 17536 Total Submissions: 65508My Submissions Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row
2014-09-11 07:12:15 966
原创 Leetcode dfs Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal Total Accepted: 14824 Total Submissions: 55882My Submissions Given preorder and inorder traversal of a tree, construct the binary
2014-09-10 13:16:10 1046
原创 Leetcode dfs N-Queens II
N-Queens II Total Accepted: 12668 Total Submissions: 38109My Submissions Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct
2014-09-10 09:11:01 943
原创 Leetcode dfs N-Queens
N-Queens Total Accepted: 14054 Total Submissions: 54127My Submissions The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other
2014-09-10 09:04:43 997
原创 Leetcode dfs Path SumII
Path Sum II Total Accepted: 18489 Total Submissions: 68323My Submissions Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For exampl
2014-09-10 00:37:10 1305
原创 Leetcode 贪心 Jump Game II
Jump Game II Total Accepted: 16242 Total Submissions: 65802My Submissions Given an array of non-negative integers, you are initially positioned at the first index of the array. Each elem
2014-09-10 00:33:08 1039
原创 Leetcode dfs Word Break II
Word Break II Total Accepted: 15138 Total Submissions: 92228My Submissions Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a va
2014-09-09 23:33:51 1015
原创 Leetcode dp Word Break
Word Break Total Accepted: 22281 Total Submissions: 105657My Submissions Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence o
2014-09-09 20:23:35 1022
原创 Leetcode 贪心 Jump Game
Jump Game Total Accepted: 18745 Total Submissions: 68916My Submissions Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element
2014-09-09 10:08:31 760
原创 Leetcode dfs Letter Combinations of a Phone Number
Letter Combinations of a Phone Number Total Accepted: 15964 Total Submissions: 60700My Submissions Given a digit string, return all possible letter combinations that the number could repr
2014-09-08 17:08:13 793
原创 Leetcode 细节实现 Longest Common Prefix
Longest Common Prefix Total Accepted: 17298 Total Submissions: 63704My Submissions Write a function to find the longest common prefix string amongst an array of strings. 题意
2014-09-08 16:20:17 669
原创 Leetcode 栈 Longest Valid Parentheses
Longest Valid Parentheses Total Accepted: 14818 Total Submissions: 75749My Submissions Given a string containing just the characters '(' and ')', find the length of the longest valid (w
2014-09-08 15:59:12 674
原创 Leetcode 贪心 Longest Consecutive Sequence
Longest Consecutive Sequence Total Accepted: 19169 Total Submissions: 68303My Submissions Given an unsorted array of integers, find the length of the longest consecutive elements sequence
2014-09-07 20:24:09 646
原创 Leetcode 模拟 Count and Say
Count and Say Total Accepted: 14508 Total Submissions: 53213My Submissions The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is
2014-09-07 19:44:37 679
原创 Leetcode 细节实现 Length of Last Word
Length of Last Word Total Accepted: 17518 Total Submissions: 59526My Submissions Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the lengt
2014-09-07 15:56:19 759
原创 Leetcode 栈 Valid Parentheses
Valid Parentheses Total Accepted: 17916 Total Submissions: 63131My Submissions Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input stri
2014-09-07 15:23:39 773
原创 Leetcode dfs Sudoku Solver
Sudoku Solver Total Accepted: 11799 Total Submissions: 56732My Submissions Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character
2014-09-07 13:05:31 786
原创 Leetcode 细节实现 Valid Sudoku
Valid Sudoku Total Accepted: 13142 Total Submissions: 47070My Submissions Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially fi
2014-09-07 13:05:03 670
原创 Leetcode 二分查找 Search a 2D Matrix
Search a 2D Matrix Total Accepted: 18506 Total Submissions: 59402My Submissions Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following pr
2014-09-05 16:26:00 829
原创 Leetcode bfs&dfs Binary Tree Postorder Traversal II
Binary Tree Level Order Traversal II Total Accepted: 16983 Total Submissions: 54229My Submissions Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie
2014-09-05 16:21:41 670
原创 Leetcode dfs Binary Tree Postorder Traversal
Binary Tree Postorder Traversal Total Accepted: 28560 Total Submissions: 92333My Submissions Given a binary tree, return the postorder traversal of its nodes' values. For example: Given
2014-09-05 16:04:00 716
原创 Leetcode dfs Sum Root to Leaf Numbers
Sum Root to Leaf Numbers Total Accepted: 20237 Total Submissions: 67979My Submissions Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a numbe
2014-09-05 15:38:32 718
原创 Leetcode dfs Combination SumII
Combination Sum II Total Accepted: 13710 Total Submissions: 55908My Submissions Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C wher
2014-09-01 13:33:46 778
原创 Leetcode dfs Combination Sum
Combination Sum Total Accepted: 17319 Total Submissions: 65259My Submissions Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the ca
2014-09-01 10:41:33 835
原创 Leetcode dfs Combinations
Combinations Total Accepted: 18327 Total Submissions: 60479My Submissions Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4
2014-09-01 00:49:57 968
UNIX网络编程 卷1
2012-08-13
Android中文合集(126+8篇)
2011-10-05
java编程思想(第4版)
2011-09-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人