题目:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
解决方案:
/**
* Definition for singly-linked list.
...
分类:
其他好文 时间:
2014-12-24 21:32:44
阅读次数:
236
1. 流程定义(Process Definition)流程定义是记录在xml文件中的对流程的描述,它包含唯一的流程开始节点和多个流程功能节点,每个节点之间使用transition进行连接。 ProcessDefinition使用id, key和version进行标识,jBPM中可能包含多个key值相...
分类:
其他好文 时间:
2014-12-24 11:13:32
阅读次数:
282
查找所有存储过程包含了哪些表,函数select * from sys.all_sql_modules where definition like '%[NAME]%'查找作业步骤里执行了哪些存储过程select * from [msdb].[dbo].[sysjobsteps] where co.....
分类:
数据库 时间:
2014-12-22 19:21:10
阅读次数:
245
首先我们了解一下 IPC和AIDL
IPC:进程间通信
AIDL:Android Interface Definition Language,即Android接口定义语言。
为什么使用:
Android系统中的进程之间不能共享内存,因此,需要提供一些机制在不同进程之间进行数据通信。
为了使其他的应用程序也可以访问本应用程序提供的服务,Android系统采用了远程过程调用(Remote Proc...
分类:
移动开发 时间:
2014-12-22 18:08:34
阅读次数:
229
In TFS2008, deleting a build removes it from the database itself. If you delete a build called Build_20110423.1 or 1.0.0.1 from Build Explorer and tri...
分类:
Web程序 时间:
2014-12-21 20:33:52
阅读次数:
371
题目:
思路:
题目说 one pass
那么,这样,用两个结点(相当于c++的指针)p,q
p先跑n步,然后q和p一起跑,那么p跑到最后,q就正好在倒数第n个上面了。
ps:看了别人的代码,好多都是建立一个不用的头,然后真正的头在next里面,这样代码要少了单独处理头的那部分。
解决方案:
/**
* Definition for singly-linke...
分类:
其他好文 时间:
2014-12-21 16:40:29
阅读次数:
189
正如标题,这样的资料网上很多,也说的很到位,但是都感觉解释的很多,理论性过强,在这里我简单的总结和概括下他们之间的区别,可以一目了然:一.静态类和非静态类Definition: 静态类可以视为类库中都是单一的过程,不存在“状态”的概念; 非静态类是存储有状态的一类操作过程Summary: ...
分类:
Web程序 时间:
2014-12-20 12:52:06
阅读次数:
200
use smaller heap/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next...
分类:
其他好文 时间:
2014-12-18 23:31:27
阅读次数:
235
QUESTIONGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.1ST TRY/** * Definition for a point. * stru...
分类:
其他好文 时间:
2014-12-16 23:55:56
阅读次数:
201
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-12-16 20:53:13
阅读次数:
213