我曾经一直以为旋转跟翻转一样,今日自己旋转了好久都发觉跟翻转差一点点,纠结了十几分钟才明确,仅仅能怪自己的立体感太差了。
css3中的transform中有旋转,放缩,倾斜,平移的功能,分别相应的属性是:rotate,scale,skew,translate
旋转:(rotate)...
分类:
Web程序 时间:
2014-06-02 21:28:50
阅读次数:
307
treap!var i,n,x,y,ans,a,b,root,tot,ft:longint;
l,r,s,v,hr:array[0..100000] of longint;procedure r_rotate(var x:longint); var
y:longint; begin y:=l[...
分类:
其他好文 时间:
2014-06-02 11:50:43
阅读次数:
181
1,首先需要查看触摸板: 命令:xinput list 结果: ? Virtual core
pointer id=2 [master pointer (3)] ? ? Virtual core XTEST pointer id=4 [slave
poin...
分类:
系统相关 时间:
2014-06-02 10:07:16
阅读次数:
362
Sort ListSort a linked list inO(nlogn) time
using constant space
complexity.要求时间复杂度为O(nlogn),那么不能用quickSort了(最坏O(n^2)),所以使用mergeSort.通常写排序算法都是基于数组的,这题...
分类:
其他好文 时间:
2014-06-02 06:29:51
阅读次数:
192
maximum函数取一组可排序的 List(属于 Ord Typeclass)
做参数,并回传其中的最大值。想想,在命令式风格中这一函数该怎么实现。很可能你会设一个变量来存储当前的最大值,然后用循环遍历该
List,若存在比这个值更大的元素,则修改变量为这一元素的值。到最后,变量的值就是运算结果。唔...
分类:
其他好文 时间:
2014-06-02 00:11:06
阅读次数:
412
本章讲的就是 Haskell
那套独特的语法结构,先从模式匹配开始。模式匹配通过检查数据的特定结构来检查其是否匹配,并按模式从中取得数据。在定义函数时,你可以为不同的模式分别定义函数本身,这就让代码更加简洁易读。你可以匹配一切数据类型
--- 数字,字符,List,元组,等等。我们弄个简单函数,让它...
分类:
其他好文 时间:
2014-06-01 23:58:42
阅读次数:
497
递归一下
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
Li...
分类:
其他好文 时间:
2014-06-01 17:35:40
阅读次数:
406
参考Netty API
io.netty.channel.ChannelPipeline
A list of ChannelHandlers which handles or intercepts inbound events and outbount operations of a
Channel. ChannelPipeline implements an advanced fo...
分类:
Web程序 时间:
2014-06-01 15:44:27
阅读次数:
533
【题目】
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the following condition:
1 ≤ m ≤ n ≤ length of list.
【题意】
...
分类:
其他好文 时间:
2014-06-01 15:08:34
阅读次数:
237
document list & show close button on each tab in menu settings-preferences...
分类:
其他好文 时间:
2014-06-01 14:49:57
阅读次数:
163