“p” command prints the buffer (remember to use -n option with “p”)
“d” command is just opposite, its for deletion. ‘d’ will delete the pattern space buffer and immediately starts the next cycle.
...
分类:
其他好文 时间:
2015-01-14 15:34:14
阅读次数:
157
https://oj.leetcode.com/problems/linked-list-cycle/Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using ext...
分类:
其他好文 时间:
2015-01-13 13:55:51
阅读次数:
193
一旦调用对象的autoRelease函数,那么这个对象就被Cocos2d-x的内存管理机制给盯上了,如果这个对象没人认领,那就等着被释放吧必须要调用了对象的autoRelease函数之后,retain和release函数才会生效,否则,一切都是徒劳。调用对象的autoRelease函数,对象就会被C...
分类:
其他好文 时间:
2015-01-13 10:15:57
阅读次数:
119
简单介绍了 Nginx 启动的过程,并分析了其启动过程的源码。在启动过程中有一个步骤非常重要,就是调用函数 ngx_init_cycle(),该函数的调用为配置解析提供了接口。配置解析接口大概可分为两个阶段:准备数据阶段 和 配置解析阶段;...
分类:
其他好文 时间:
2015-01-12 09:18:05
阅读次数:
313
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?题意判...
分类:
其他好文 时间:
2015-01-11 14:44:45
阅读次数:
160
当我们输入内容有误,进入下一步的时候 ,不应生效 ,页面上什么提示也没有也不太友好,这时候可以让 输入框抖动一下
下面就把 抖动的动画 发上来,大家可以使用一下哦
cycle.xml 文件 ,主要就是用来指定 动画执行几次的
<cycleInterpolator
xmlns:android="http://schemas.android.com/apk/res/an...
分类:
移动开发 时间:
2015-01-09 17:24:23
阅读次数:
167
https://oj.leetcode.com/problems/linked-list-cycle/http://blog.csdn.net/linhuanmars/article/details/21200601/**
*Definitionforsingly-linkedlist.
*classListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
publicclassSolution{
publi..
分类:
其他好文 时间:
2015-01-09 01:52:33
阅读次数:
155
https://oj.leetcode.com/problems/linked-list-cycle-ii/http://blog.csdn.net/linhuanmars/article/details/21260943/**
*Definitionforsingly-linkedlist.
*classListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
publicclassSolution{
pu..
分类:
其他好文 时间:
2015-01-09 01:51:33
阅读次数:
173
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
第一题要求是否有环 从图中可以看出 使用快慢指针 只要有环两者必定会相遇 另外从...
分类:
编程语言 时间:
2015-01-07 14:59:22
阅读次数:
178
题目:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:使用快慢两个指针。开始时,两个指针同时指向head,之后slow每次前行一步,fast每次前行两步。如果链表有环,这两个指针一定会相遇,如果没有...
分类:
编程语言 时间:
2015-01-07 13:16:22
阅读次数:
172