Kubuntu是很好使用,但是升级提示也是太烦人了,开机的时候总是显示如下画面: 使用System Load Indicator(sudo apt-get install indicator-multiload)查看这个界面,它的进程名是notify-osd;使用 locate -b -r not....
分类:
系统相关 时间:
2014-12-07 15:02:45
阅读次数:
379
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fir...
分类:
其他好文 时间:
2014-12-07 14:58:26
阅读次数:
178
给定一个类似棋盘,有X和O,把X圈住的O变为X例如:For example,X X X XX O O XX X O XX O X XAfter running your function, the board should be:X X X XX X X XX X X XX O X X其实这题的思路...
分类:
其他好文 时间:
2014-12-07 01:18:26
阅读次数:
137
题目
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-...
分类:
其他好文 时间:
2014-12-06 16:51:45
阅读次数:
195
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2014-12-06 12:47:15
阅读次数:
152
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41750865
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.
For example,
Given 1->2->3,4->5->6,...
分类:
其他好文 时间:
2014-12-06 08:55:36
阅读次数:
245
Given a binary tree
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t...
分类:
其他好文 时间:
2014-12-05 22:47:04
阅读次数:
271
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-12-05 12:24:14
阅读次数:
160
match查询是如何使用bool查询的
现在,你也许意识到了使用了match查询的多词查询只是简单地将生成的term查询包含在了一个bool查询中。通过默认的or操作符,每个term查询都以一个k语句被添加,所以至少一个should语句需要被匹配。以下两个查询是等价的:
{
"match": { "title": "brown fox"}
}
{
"bool": {
...
分类:
其他好文 时间:
2014-12-05 10:53:53
阅读次数:
181
Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should...
分类:
其他好文 时间:
2014-12-04 19:57:46
阅读次数:
204