码迷,mamicode.com
首页 >  
搜索关键字:nexus one    ( 29197个结果
Java线程(十):CAS
在Java并发包中有这样一个包,java.util.concurrent.atomic,该包是对Java部分数据类型的原子封装,在原有数据类型的基础上,提供了原子性的操作方法,保证了线程安全。下面以AtomicInteger来分析一下其实现过程。/** * Atomically increments by one the current value. * * @return the upda...
分类:编程语言   时间:2014-08-18 22:04:52    阅读次数:309
Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words....
分类:其他好文   时间:2014-08-18 18:40:22    阅读次数:190
sharepoint One-Time Passwords (windows basic authentication)
//设计中,未完成references:http://www.asp.net/web-api/overview/security/basic-authenticationhttp://technet.microsoft.com/zh-cn/library/dd378867(v=ws.10).aspx...
分类:Windows程序   时间:2014-08-18 17:47:32    阅读次数:201
UVA - 10892 LCM Cardinality (枚举因子)
A pair of numbers has a unique LCM but a single number can be the LCM of more than one possible pairs. Forexample 12 is the LCM of (1, 12), (2, 12), (3,4) etc. For a given positive integer N, the ...
分类:其他好文   时间:2014-08-18 16:25:24    阅读次数:240
Program for Linux USB-devices driver step by step (ONE)
Program for Linux USB-devices driver 开始啃硬骨头~ 这里我打算一步步给出USB device driver 的demo,希望有心能能够共同交流学习. 希望认识更多对Linux有兴趣的geek. 目前由于环境和自身能力方面原因还没能做实物的测试,篇章的最后打算给出一个在x86上模拟USB读写的driver,以后能够做实物测试之后再更新this blo...
分类:系统相关   时间:2014-08-18 03:53:13    阅读次数:457
UVA 116 Unidirectional TSP(DP)
Background Problems that require minimum paths through some domain appear in many different areas of computer science. For example, one of the constraints in VLSI routing problems is minimizing wire ...
分类:其他好文   时间:2014-08-18 00:20:23    阅读次数:331
HDU 1016 Prime Ring Problem
在刚刚写完代码的时候才发现我以前交过这道题,可是没有过。后来因为不理解代码,于是也就不了了之了。可说呢,那时的我哪知道什么DFS深搜的东西啊,而且对递归的理解也很肤浅。这道题应该算HDU 2610 Sequence one的简化版,判重也非常简单。其他也没有什么好说的了,直接上代码吧。 1 //#d...
分类:其他好文   时间:2014-08-18 00:07:03    阅读次数:207
thinkphp关联模型的用法
HAS_ONE(值得注意的是,这是主动关联,外键必须是被关联的表): 1 array(//关联的数据表 7 'mapping_type'=>self::HAS_ONE,//一对一 8 'class_name' => 'artag',//关...
分类:Web程序   时间:2014-08-17 22:40:02    阅读次数:407
java中的四种单例实现方式
在java中,单例设计模式是非常常见的设计模式,对单例设计模式的概念,不做过多的介绍,下面将逐一介绍四种单例设计模式:1、第一种单例设计模式1.1代码实现packagecom.singleton.one; /** *第一种单例设计模式 *@authorAdministrator * */ publicclassSingleTonOne{ //实例化..
分类:编程语言   时间:2014-08-17 17:11:13    阅读次数:306
zoj3013Word Segmenting (字典树+dp)
Word Segmenting Time Limit: 5 Seconds Memory Limit: 32768 KB Special Judge One key technology in Chinese search engine is Word Segmenting, which is more difficult than English Word Segmenting...
分类:其他好文   时间:2014-08-17 17:06:42    阅读次数:364
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!