You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2014-12-12 15:01:52
阅读次数:
137
【题目】
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 preserve the original relative order of the nodes ...
分类:
其他好文 时间:
2014-12-12 11:44:41
阅读次数:
125
xml结构: 解析方法:$(xml).find("RightMenuItems").each(function () { this.data = Traversal($(this).children());});var Traversal = function (nodes) { v...
分类:
Web程序 时间:
2014-12-12 10:12:15
阅读次数:
106
Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3,2,...
分类:
其他好文 时间:
2014-12-12 01:15:30
阅读次数:
244
昨天在指导别人指针的时候,突发奇想想到这么一道题,我觉得挺有意思的,发给大家看看,虽然不是什么很高级的技术,但是是个很有趣的思路.....
题目就是:
void swap(int a,int b)这个函数原型,不能用全局变量与静态变量的情况下,怎么实现交换两个数?
如果你有兴趣可以思考一下,如果没兴趣就直接看下面的答案吧。
-----------------------------...
分类:
其他好文 时间:
2014-12-11 22:27:11
阅读次数:
170
1.创建一个大小为1G的Swap文件ddif=/dev/zeroof=/swapfilebs=100Mcount=1002.把这个文件变成swap文件:mkswap/swapfile3.启用这个swap文件:swapon/swapfile4.编辑/etc/fstab文件,增加/swapfileswapswapdefaults005.查看swap分区和大小以及使用情况#/sbin/swapon-s
分类:
其他好文 时间:
2014-12-11 19:21:45
阅读次数:
250
题目
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 preserve the original relative order of the nodes in...
分类:
其他好文 时间:
2014-12-11 17:21:24
阅读次数:
153
题目描述:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a si...
分类:
其他好文 时间:
2014-12-11 15:35:50
阅读次数:
124
1、redis中的缓存数据并不是都在内存中,redis在maxmemory或vm开启并且vm-max-memory到达上限时出发置换操作用swap机制将部分value对象(冷数据)转移至磁盘,同时将redisobj替换成VM pointer对象,标识value值在磁盘的存储位置,分有阻塞跟非阻塞机制...
分类:
系统相关 时间:
2014-12-10 22:47:56
阅读次数:
228
复制一个无向图。图的结构时有一个label,一个vector存和他想接的节点。可以自循环,就是vector中可以存在自己。例如:Nodes are labeled uniquely.We use#as a separator for each node, and,as a separator for...
分类:
其他好文 时间:
2014-12-10 22:31:27
阅读次数:
228