码迷,mamicode.com
首页 >  
搜索关键字:search    ( 12380个结果
Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.思路:使用两个指针分别以1、2的速度遍历链表,以定位出链表的中点,进而将链表分割成...
分类:其他好文   时间:2014-08-17 02:21:36    阅读次数:246
HDU 2222 Keyword Search AC自动机模板
#include #include #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000"); #define EPS (1e-6) #define LL long long #de...
分类:其他好文   时间:2014-08-16 19:48:41    阅读次数:239
一年纯手工打造的Java老A上册开始预售了
Java老A这本书写了很久,昨天终于开始在china-pub上开始预售了,其它网站可能会慢一点,不过既然叫预售,就肯定还没到货。有兴趣的人可以去看看哈(后续其它网站地址也会在这里公开):http://search.china-pub.com/s/?key1=java%cc%d8%d6%d6%b1%f8&type=&pz=1关于本书内容,请参考:http://blog.csdn.net/xieyuo...
分类:编程语言   时间:2014-08-16 15:10:40    阅读次数:428
[leetcode]Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:其他好文   时间:2014-08-16 12:19:20    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!