SListNode*IsRing(SListNode*&pHead)//判断链表是否有环,求相聚点
{
//判空、有、没有
//思路:两个指针从头开始一快(2步)一慢(1步),若最后可以相聚,则链表有环
if(pHead)
{
SListNode*fast=pHead;
SListNode*slow=pHead;
while(fast&&fast->next)
{
fa..
分类:
编程语言 时间:
2016-01-05 01:37:54
阅读次数:
294
Apache Spark is an open source cluster computing system that aims to make data analytics fast — both fast to run and fast to write.BDAS, the Berkeley ...
分类:
其他好文 时间:
2016-01-04 19:38:22
阅读次数:
132
Problem DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is...
分类:
其他好文 时间:
2016-01-03 19:39:27
阅读次数:
205
改进之后
未使用VSGL
使用VSGL
博主显卡差的一笔,nvidia GeForce 610M,。。。下狠手编shader不是卡死就是显...
分类:
编程语言 时间:
2015-12-31 16:07:07
阅读次数:
226
博主实现(in Unity3d 5)
used one spotlight
史克威尔效果展示(夜光引擎?)
博主近期渲染:最近用unity5弄的一些渲染
---- by wolf96 http://blog.csdn.net/wolf96...
分类:
编程语言 时间:
2015-12-30 08:05:06
阅读次数:
484
2016年三大网络安全威胁:手机超过PC成头号攻击目标2016年三大网络安全威胁:手机超过PC成头号攻击目标外媒Fast Company报道称,关于网络完全问题,人们的防御意识还是很薄弱。网络安全公司副总裁Micro Focus表示:“人们习惯于在线生活,这是好事,但他们却被黑客完全地、无情地、大力...
分类:
移动开发 时间:
2015-12-28 00:53:42
阅读次数:
258
0. 前言 前段时间在看无锁队列相关的东西时发现了一篇关于加锁队列算法优化的文章,故看了下其原理以及使用C实现了该队列。该队列在Java中类LinkedBlockingQueue以及实现了该功能。 相关文章:Simple, Fast, and Practical Non-Blocking and.....
分类:
编程语言 时间:
2015-12-22 19:31:56
阅读次数:
225
Data Plane Development Kit(DPDK) is a set of libraries and drivers for fast packet processing. It was designed to run on any processors. The first sup...
分类:
其他好文 时间:
2015-12-21 18:32:37
阅读次数:
202
public ListNode detectCycle(ListNode head) { ListNode fast = head; ListNode slow = head; int flag = 0; ListNode intersection = nu...
分类:
其他好文 时间:
2015-12-18 10:36:29
阅读次数:
107
题目传送门题意:训练指南P207分析:因为矩阵不超过20行,所以可以建20条线段的线段树,支持两个区间更新以及区间查询.#include using namespace std;#define lson l, mid, o b) a = b; } void push_up(int o) { no.....
分类:
其他好文 时间:
2015-12-15 14:38:08
阅读次数:
202