Without any doubts, Android SDK has a poor documentations. There are pitfalls and traps about APIs without any mentions in SDK documentations. 1. WebView.clearHistory() When there is only one item ...
分类:
移动开发 时间:
2014-10-08 23:01:37
阅读次数:
166
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder it t...
分类:
其他好文 时间:
2014-10-08 15:01:15
阅读次数:
159
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用快慢指针,如果有循环两指针必定能相遇: 1 p...
分类:
编程语言 时间:
2014-10-08 04:32:34
阅读次数:
298
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:
编程语言 时间:
2014-10-08 01:02:44
阅读次数:
268
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-10-07 19:09:53
阅读次数:
180
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:
其他好文 时间:
2014-10-07 17:53:53
阅读次数:
221
Two 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 straight forward. Could you devis...
分类:
其他好文 时间:
2014-10-06 18:43:20
阅读次数:
201
[root@localhost ~]# service mysqld startStarting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).1...
分类:
数据库 时间:
2014-10-06 12:47:40
阅读次数:
309
Time Limit:1000MSMemory Limit:65536KTotal Submissions:2292Accepted:878DescriptionA tree (i.e. a connected graph without cycles) with vertices numbered...
分类:
其他好文 时间:
2014-10-05 16:49:58
阅读次数:
154
CentOS+Nginx+PHP+MYSQL搭建好之后,跑PHP报“Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure y...
分类:
Web程序 时间:
2014-10-05 02:27:47
阅读次数:
205