题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?题解:这道题连带着II是很经典的,在看CC150时候,纠结这个问题纠结了很久....
分类:
编程语言 时间:
2014-07-23 12:02:26
阅读次数:
311
1.在div元素中,包含了一个元素,通过has选择器获取元素中的元素的语法是?提示使用has $("div:has(span)")2.在三个元素中,分别添加多个元素,通过jQuery中的子元素选择器,将这三个元素中的第一个元素隐藏,代码是?提示使用first-child$("li:first-chi...
分类:
Web程序 时间:
2014-07-23 11:47:16
阅读次数:
230
最近安装了NDK
R8B,但是在cygwin下开始使用ndk-build时出现大量的如题所示的警告。于是,先GOOGLE一下,寻找模糊答案。又到NDK下载网站看
到,NDKR8B确实更新了C++编译器。而且,有网文介绍说,使用NDK
R8不会出现那样的警告。这个,我没有试验,估计OK(因为作者说他自己试验..
分类:
其他好文 时间:
2014-07-23 00:17:58
阅读次数:
178
Problem Description
DouBiXp has a girlfriend named DouBiNan.One day they felt very boring and decided to play some games. The rule of this game is as following. There are k balls on the desk. Every...
分类:
其他好文 时间:
2014-07-23 00:05:27
阅读次数:
344
Problem Description
Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose level below this task’s le...
分类:
其他好文 时间:
2014-07-22 23:57:27
阅读次数:
601
Wrote by mutouyun. (http://darkc.at/about-data-structure-alignment/)
1. 内存对齐(Data Structure Alignment)是什么
内存对齐,或者说字节对齐,是一个数据类型所能存放的内存地址的属性(Alignment is a property
of a memory address)。
这个属性...
分类:
其他好文 时间:
2014-07-22 23:52:08
阅读次数:
487
H. City HorizonTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainFarmer John has taken his cows on a trip to th...
分类:
其他好文 时间:
2014-07-22 23:21:57
阅读次数:
263
1.引入pymssql包import pymssql2.建立连接: conn = pymssql.connect(server=conf['db_address'], port="1433",user=conf['db_username'], password=conf['db_pass...
分类:
数据库 时间:
2014-07-22 22:50:12
阅读次数:
339
Maven 2 repository Eclipse needs to know the path to the local maven repository. Therefore the classpath variable?M2_REPO?has to be set. Execute the following command: mvn?-Declipse.workspace=<...
分类:
系统相关 时间:
2014-07-22 22:32:54
阅读次数:
344
tomcat启动报错:Cannotassignrequestedaddress:jvm_bind经查端口并未被占用,发现最后原因是hosts文件改过,加了一行<ip>localhost,导致启动时绑定不存在的ip失败了,把这行去掉就可以了。
分类:
其他好文 时间:
2014-07-22 18:23:52
阅读次数:
225