- 博客(17)
- 资源 (3)
- 收藏
- 关注
原创 Leetcode 之正则表达式 RegExp
正则表达式一些好的学习资源:Microsoft MSDNJavahttp://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.htmlothershttp://developer.51cto.com/art/200912/166310.htmhttp://lu
2014-03-26 03:40:44 1362
原创 Project planning and scheduling with MS Project 2012
Project planning and scheduling Objective: Project Planning & Scheduling using MicrosoftProject Professional 2010 or higher version Objective: 1. Practice F
2014-03-20 13:05:10 2472
原创 LeetCode 之排序 sorting
1. First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run
2014-03-18 04:18:09 1543
转载 LeetCode 问题汇总(算法,难度,频率)
IdQuestionDifficultyFrequencyData StructuresAlgorithms1Two Sum25array + setsort + two pointers2Add Two Numbers34linked listtwo point
2014-03-13 11:58:30 14164
原创 LeetCode 之 DFS 深度优先遍历
1. Palindrome Partioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s
2014-03-12 04:18:02 3164
原创 LeetCode 之双指针 two pointers
1. 3SumGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a t
2014-03-11 01:20:51 6303 1
原创 LeetCode 之二分法查找 Binary search
1. Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).
2014-03-10 14:07:46 1011
原创 LeetCode 之哈希表 map
1. Longest Consecutive Sequence Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest con
2014-03-10 03:04:34 2719
原创 LeetCode 之动态规划
1. Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that positi
2014-03-07 12:27:36 9730
原创 LeetCode 之堆栈 stack
1. Valid ParentheseGiven a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()"
2014-03-07 07:23:24 2491
原创 LeetCode 回溯算法 backtracking
1. Sudoku Solverrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be only one unique soluti
2014-03-07 06:41:40 2379
原创 LeetCode 实现题(一)
1. Valid SodokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
2014-03-06 11:42:26 1300
原创 LeetCode 之模拟&贪心
1.Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (ie, -1)If yo
2014-03-04 05:10:42 2104
原创 LeetCode 之 string字符串一
1. Length of last wordGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist,
2014-03-04 04:38:42 9912
原创 LeetCode 之水箱问题
1. Container with most waterGiven n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line
2014-03-04 02:19:53 5604
转载 LeetCode Summary of Data Structure & Algorithms
1. 常见数据结构线性:数组:Merge Sorted Array链表:Merge k Sorted Lists,Partition List队列,堆栈,块状数组(数组+链表),hash表,双端队列,位图(bitmap)树: 二叉树: Minimum Depth of Binary Tree, Path Sum II, Inorder Trave
2014-03-04 01:37:28 1852
原创 Leetcode 之二叉树 tree
1. Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is pretty
2014-03-04 01:34:03 3577
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人