- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 leetcode Next Permutation(*)
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible
2014-07-28 19:38:50 580
原创 leetcode Length of Last Word (*)
Given 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, return 0.Note: A word is
2014-07-28 18:52:30 511
原创 leetcode Valid Sudoku(*)
Determine 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 '.'.A partially fille
2014-07-26 20:45:17 505
原创 leetcode Insertion Sort List(*)
Sort a linked list using insertion sort. 插入排序,仿照数组的插入排序,
2014-07-26 20:25:41 499
原创 leetcode Sort List(**)
Sort a linked list in O(n log n) time using constant space complexity.
2014-07-26 19:59:16 466
原创 leetcode Symmetric Tree(*)
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the f
2014-07-24 19:54:10 512
原创 leetcode Count and Say(*)
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as
2014-07-24 19:10:18 468
原创 leetcode Max Points on a Line(*)
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 求
2014-07-24 18:55:34 478
原创 leetcode Evaluate Reverse Polish Notation(*)
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples: ["2", "1", "+", "3"
2014-07-15 21:27:11 423
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人