码迷,mamicode.com
首页 >  
搜索关键字:only the original th    ( 14791个结果
Peterson和多线程版本
Peterson's algorithm (AKA Peterson's solution) is a concurrent programming algorithm for mutual exclusion that allows two processes to share a single-use resource without conflict, using only shar...
分类:编程语言   时间:2014-06-25 19:38:19    阅读次数:748
关系型数据库和NoSQL数据库
关系型数据库和NoSQL数据库什么是NoSQL大家有没有听说过 “NoSQL”呢?近年,这个词极受关注。看到“NoSQL”这个词,大家可能会误以为是“No!SQL”的缩写,并深感愤怒:“SQL怎么会没有必要了 呢?”但实际上,它是“Not Only SQL”的缩写。它的意义是:适用关系型数据库的时候...
分类:数据库   时间:2014-06-25 14:51:07    阅读次数:294
JavaScript 实现Map
var map=new Map(); map.put("a","A");map.put("b","B");map.put("c","C"); map.get("a"); //返回:A map.entrySet() // 返回Entity[key,value] map.containsKey('kevin') //返回:false function Map() { th...
分类:编程语言   时间:2014-06-25 00:05:28    阅读次数:309
atitit.团队建设总结fx O622
团队建设总结fx O622     大的title 2 建设团队文化 2 办公环境(3s+树+湖) 3 每人一个办公室 3 弹性工作制 3 重大的决定公投体制 3 每年一个kid经验日 3 做自己想到做的事.. 3 One2one 3 灵活的规定 3 公共的gucywe 4 感谢队友的工作 4 欣赏队友的工作,不要挑刺,在完美的工作也有缺点..only find ...
分类:其他好文   时间:2014-06-24 23:55:50    阅读次数:523
UVA 10622 - Perfect P-th Powers(数论)
UVA 10622 - Perfect P-th Powers 题目链接 题意:求n转化为b^p最大的p值 思路:对n分解质因子,然后取所有质因子个数的gcd就是答案,但是这题有个坑啊,就是输入的可以是负数,负数的情况比较特殊,p只能为奇数,这时候是要把答案不断除2除到为奇数即可。 代码: #include #include #include long lon...
分类:其他好文   时间:2014-06-24 23:30:45    阅读次数:169
Python Monkey patch猴子补丁
monkey patch (猴子补丁) 用来在运行时动态修改已有的代码,而不需要修改原始代码。简单的monkey patch 实现:[python]#coding=utf-8def originalFunc(): print 'this is original function!'def modif...
分类:编程语言   时间:2014-06-24 22:50:22    阅读次数:463
JavaScript获取某年某月的最后一天
JavaScript获取某年某月的最后一天 1、实现源码 <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in th...
分类:编程语言   时间:2014-06-24 22:36:13    阅读次数:350
为什么我的ECSHOP出现报错改正确了还是没有反应?
我在刚开始安装完ecshop之后就如首页就开始报如下的错误: Strict Standards: Only variables should be passed by reference in C:\diyServ\apps\EcShop\includes\cls_template.php on line 422 在网上可以搜到这个解决办法就是:由于在php5.3之后php函数返回的是一...
分类:其他好文   时间:2014-06-24 22:23:33    阅读次数:230
LeetCode:Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric  characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" i...
分类:其他好文   时间:2014-06-24 18:16:02    阅读次数:147
LeetCode: Valid Palindrome [125]
【题目】 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. Note: Have you consider that the string m...
分类:其他好文   时间:2014-06-24 15:35:07    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!