class Solution {public: void reorderList(ListNode* head) { ListNode *head1 = head, *head2 = NULL; int len = 0, count = 1; while(head) { //遍历链表 head = ...
分类:
其他好文 时间:
2017-10-27 02:01:33
阅读次数:
210
Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, ...
分类:
其他好文 时间:
2017-10-25 15:15:37
阅读次数:
148
一、Zookeeper的搭建方式Zookeeper的安装方式有三种,单机模式、集群模式、伪集群模式单机模式:zookeeper只运行在一台服务器上,适合测试环境。伪集群模式:一台物理机上运行多个zookeeper实例;集群模式:Zookeeper运行于一个集群上,适合生产环境,这个计算机集群被称之为... ...
分类:
移动开发 时间:
2017-10-25 11:34:46
阅读次数:
199
203. Remove Linked List Elements Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 ...
分类:
其他好文 时间:
2017-10-24 20:53:45
阅读次数:
190
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 题目含义:判断一个列表是否有环路 ...
分类:
其他好文 时间:
2017-10-24 17:18:47
阅读次数:
142
--使用 on commit 的方式建立物化视图 create materialized view emp_dept refresh on commit as select t.*,d.dname from emp t , dept d where t.deptno = d.deptno; --使用... ...
分类:
数据库 时间:
2017-10-22 00:15:14
阅读次数:
281
System.currentTimeMillis()产生一个当前的毫秒,这个毫秒其实就是自1970年1月1日0时起的毫秒数,Date()其实就是相当于Date(System.currentTimeMillis());因为Date类还有构造Date(long date),用来计算long秒与1970年 ...
分类:
编程语言 时间:
2017-10-20 18:48:32
阅读次数:
184
相信很多人可能都遇到过下面这些异常: "Parameter 'xxx' not found. Available parameters are [...]" "Could not get property 'xxx' from xxxClass. Cause: "The expression 'xx ...
分类:
其他好文 时间:
2017-10-17 17:22:59
阅读次数:
228
class Solution { public ListNode sortList(ListNode head) { if(head==null||head.next==null) return head; ListNode p=head,q=head; while(p.next!=null&&p.... ...
分类:
其他好文 时间:
2017-10-17 10:02:33
阅读次数:
125
http://docs.scala-lang.org/tour/lower-type-bounds.html中有一段代码 文中说这段代码不会通过编译,因为Function1是contravariant 在参数的位置上。看到这里是一个头很多个大的。 However, this program does ...
分类:
其他好文 时间:
2017-10-16 01:55:01
阅读次数:
181