码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-12-08 19:38:48    阅读次数:173
google prettify 代码高亮显示
引入js和css文件下载地址http://files.cnblogs.com/jaday/prettify.zipjs文件代码!function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;(function(){function S(a){f...
分类:其他好文   时间:2014-12-08 00:40:24    阅读次数:408
〖Linux〗干掉Kubuntu烦人的软件升级提示“Update notification daemon”,Your should update ..
Kubuntu是很好使用,但是升级提示也是太烦人了,开机的时候总是显示如下画面: 使用System Load Indicator(sudo apt-get install indicator-multiload)查看这个界面,它的进程名是notify-osd;使用 locate -b -r not....
分类:系统相关   时间:2014-12-07 15:02:45    阅读次数:379
LeetCode: Merge Two Sorted Lists 解题报告
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
leetcode[130] Surrounded Regions
给定一个类似棋盘,有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
【LeetCode】Merge Two Sorted Lists
题目 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
leetcode. Partition List
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
Merge Two Sorted Lists
本文是在学习中的总结,欢迎转载但请注明出处: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
【LeetCode】Populating Next Right Pointers in Each Node
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
Two Sum(hashtable)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!