1 #include"string.h" 2 #include"malloc.h" 3 4 5 void swap(int a,int b) 6 { 7 int temp; 8 temp=a; 9 a=b;10 b=temp;11 }12 13 int get_...
分类:
编程语言 时间:
2014-11-11 20:36:56
阅读次数:
204
1 #include "../../st.h" 2 class Name_pairs{ 3 public: ...
分类:
编程语言 时间:
2014-11-10 23:09:03
阅读次数:
461
# Layout和nodes## 调整大小和方位变化在LimeJs中,支持不同的屏幕大小和视口大小的变化很容易,都是自动调好的。在Director的构造中(或在*setSize*方法中),但是这不需要与实际的屏幕大小相适应。你的游戏的实际大小是从你游戏所在的容器DOM元素中得到的。如果容器对象的大小...
分类:
Web程序 时间:
2014-11-10 19:49:02
阅读次数:
241
在装完Linux系统之后自己去修改Swap分区的大小(两种方法)在安装完Linux系统后,swap分区太小怎么办,怎么可以扩大Swap分区呢?有两个办法,一个是从新建立swap分区,一个是增加swap分区。下面介绍这两种方法:第一您必须有root权限,过程中一定要很小心,一不小心就破坏了整个硬盘的数...
分类:
系统相关 时间:
2014-11-10 15:28:07
阅读次数:
240
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-11-10 13:55:03
阅读次数:
195
题目描述:
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
思路:以中右左的...
分类:
其他好文 时间:
2014-11-10 13:53:20
阅读次数:
163
最近学习C++,在实现reverse函数的时候,从一个小问题开始,在对这个问题的旁敲侧击当中带起了更多疑惑,顺藤摸瓜之后,尽管没有将诸多问题完美解答,但整个过程下来却也觉得似有所获。最初的问题起自于使用C++实现reverse模板函数时碰到的swap问题,随之在翻查STL中reverse源码的实现过...
分类:
其他好文 时间:
2014-11-10 13:44:54
阅读次数:
129
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.这道混合插入有序链...
分类:
其他好文 时间:
2014-11-10 06:27:42
阅读次数:
191
Given a binary tree, a target node in the binary tree, and an integer value k, print all the nodes that are at distance k from the given target node. ...
分类:
其他好文 时间:
2014-11-09 23:30:26
阅读次数:
235
Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo...
分类:
其他好文 时间:
2014-11-09 16:26:48
阅读次数:
127