搜索 图论 贪心 动规 ——《挑战程序设计竞赛》《数据结构》黑书二选一数论 ——《编程珠玑》
《组合数学》开拓思维的好书 《编程之美》 还有网上的趣味数学题《编程珠玑(续)》计算几何的书还没找呢。其他的就是刷oj吧。这些书 像我这么懒的人
到何时能读完呢? Any day now。不管是c/c++方...
分类:
其他好文 时间:
2014-06-16 11:08:26
阅读次数:
151
原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/题意:Given
a sorted linked list, delete all nodes that have duplicate number...
分类:
编程语言 时间:
2014-06-16 10:40:35
阅读次数:
340
原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/题意:Follow
up for "Search in Rotated Sorted Array":What ifduplicatesare allowed...
分类:
编程语言 时间:
2014-06-16 08:20:54
阅读次数:
307
原题地址:https://oj.leetcode.com/problems/gray-code/题意:The
gray code is a binary numeral system where two successive values differ in only
one bit.Given a...
分类:
编程语言 时间:
2014-06-16 07:42:27
阅读次数:
242
给的一个数列中,可能存在重复的数,比如 1 1 2
,求其全排列。记录上一个得出来的排列,看这个排列和上一个是否相同。#include #include #include using namespace std;
class Solution{public: vector > permuteU...
分类:
其他好文 时间:
2014-06-13 17:53:39
阅读次数:
280
原题地址:https://oj.leetcode.com/problems/merge-intervals/题意:Given
a collection of intervals, merge all overlapping intervals.For
example,Given[1,3],[2,6]...
分类:
编程语言 时间:
2014-06-12 14:55:49
阅读次数:
235
原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given
a binary tree, find its maximum depth.The maximum depth is the number of n...
分类:
编程语言 时间:
2014-06-12 13:55:34
阅读次数:
210