https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/Given a sorted array, remove the duplicates in place such that each element appea...
分类:
其他好文 时间:
2015-02-03 22:34:48
阅读次数:
208
https://oj.leetcode.com/problems/sort-colors/Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are a...
分类:
其他好文 时间:
2015-02-03 21:20:00
阅读次数:
213
https://oj.leetcode.com/problems/container-with-most-water/Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai...
分类:
其他好文 时间:
2015-02-03 20:55:30
阅读次数:
132
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'33: Search in Rotated Sorted Arrayhttps://oj.leetcode.com/problems/search-in-rotated-sorte...
分类:
编程语言 时间:
2015-02-03 01:52:49
阅读次数:
218
https://oj.leetcode.com/problems/remove-element/Given an array and a value, remove all instances of that value in place and return the new length.The ...
分类:
其他好文 时间:
2015-02-03 00:33:05
阅读次数:
197
题目链接:https://oj.leetcode.com/problems/binary-tree-postorder-traversal/
题目:
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
...
分类:
其他好文 时间:
2015-02-02 23:22:05
阅读次数:
312
题目链接:https://oj.leetcode.com/problems/binary-tree-preorder-traversal/
题目:
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
...
分类:
其他好文 时间:
2015-02-02 23:21:43
阅读次数:
327
题目链接:https://oj.leetcode.com/problems/binary-tree-inorder-traversal/
题目:
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
...
分类:
其他好文 时间:
2015-02-02 23:21:23
阅读次数:
294
https://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->...
分类:
其他好文 时间:
2015-02-02 22:57:49
阅读次数:
217
link:https://oj.leetcode.com/problems/two-sum/
描述:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of...
分类:
其他好文 时间:
2015-02-02 21:33:09
阅读次数:
138