码迷,mamicode.com
首页 > 其他好文
简易的hashtable实现
参考他人思路而写,具体可参考:http://blog.csdn.net/anialy/article/details/7620469 1 #ifndef _HASHTABLE_ 2 #define _HASHTABLE_ 3 #include 4 using namespace std; ...
分类:其他好文   时间:2015-09-04 23:59:09    阅读次数:430
跟风来找男票
说说我吧:外在:89年生,女生,身高160,体重94,略瘦,有肉。性格:狮子座女生,爱面子,讲义气。对喜欢的人毫无保留,对不喜欢的人懒得理会。宅,基本蜗居在家。交际少,以前总玩网游,现在很少玩了,看看美剧和小说,周末也就打发过去了。没交往过男友,初恋初吻初牵什么的,都还原装,至于这么大还没处对象的原...
分类:其他好文   时间:2015-09-04 23:58:27    阅读次数:417
生产者消费者模式(转)
本文转载自博文系列架构设计:生产者/消费者模式。文中对原文格式进行了稍加整理。概述 今天打算来介绍一下“生产者/消费者模式”,这玩意儿在很多开发领域都能派上用场。由于该模式很重要,打算分几个帖子来介绍。今天这个帖子先来扫盲一把。如果你对这个模式已经比较了解,请跳过本扫盲帖,直接看下一个帖子(关...
分类:其他好文   时间:2015-09-04 23:56:32    阅读次数:216
HDU 4359 Easy Tree DP?
Easy Tree DP?Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1487Accepted Submission(s): 567Probl...
分类:其他好文   时间:2015-09-04 23:57:04    阅读次数:152
8051汇编命令记录。
15年初出了个差,到现在才回到园子里……工作忙一方面,另外确实好久没搞这些东西了。原本想在8051单片机上搞个分时操作系统,所以看了下8051汇编下代码,总结记录如下:LJMP C:0149 //长跳转到0x0149地址开始执行命令,这条命令位于0x0000地址,是第一条命令。MOV R0,#0x7...
分类:其他好文   时间:2015-09-04 23:54:29    阅读次数:286
华为机试测试- 大数相加
方法一:直接使用BigDecimal方法二:字符串解析,注意stringBuilder.append(int x)这里的x最终会变成x字符串,而不是对应的char. 1 import java.math.BigDecimal; 2 import java.util.Scanner; 3 4 5 .....
分类:其他好文   时间:2015-09-04 23:56:55    阅读次数:225
菜鸟进阶——grunt
为保证作者版权在此声明本文部分摘自http://yujiangshui.com/grunt-basic-tutorial/另,参考文章http://www.tuicool.com/articles/yABV73及官方英文文档http://gruntjs.com/plugins开始学习 Grunt它就...
分类:其他好文   时间:2015-09-04 23:54:38    阅读次数:289
[LeetCode] H-Index
If you've read the Wikipedia article of H-Index, there is already a neat formula there for computing the h-index, which is written below using the not...
分类:其他好文   时间:2015-09-04 23:55:29    阅读次数:167
hdu 2509 博弈 *
多堆的情况要处理好孤单堆 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define MOD 100000000710 const int ...
分类:其他好文   时间:2015-09-04 23:54:10    阅读次数:140
Uva657 - The die is cast
原题链接https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=598这题就是在一堆*里找X,相邻的X算一个,所以我们可以两次dfs搜索,dfs2搜*有多少堆,df...
分类:其他好文   时间:2015-09-04 23:53:23    阅读次数:206
获取二叉树深度叶子数
1 #include 2 using namespace std; 3 typedef struct node{ 4 char data; 5 node *lchild,*rchild; 6 }binode,*bitree; 7 bitree createTree(bitree ...
分类:其他好文   时间:2015-09-04 23:54:05    阅读次数:188
String and Datetime transform each other
MSSqlserver:1. Convert string to datetimecast('2015-08-26' as datetime) or convert(datetime,'2015-08-26')2. Convert string to datetimeOracle:1. Conver...
分类:其他好文   时间:2015-09-04 23:54:33    阅读次数:159
空间电荷区的宽度
电场力作用下载流子的运动即漂移运动pn结中内电场会抑制载流子扩散运动,而加强漂移运动内电场方向是由n区指向p区,因此p区空穴以及n区电子均会受到与扩散运动方向相反的电场力,由此扩散运动被抑制,而p区少子电子和n区少子空穴会因为电场力而运动,即漂移运动,空穴会由n区向p区移动,电子由p区向n区移动漂移...
分类:其他好文   时间:2015-09-04 23:54:15    阅读次数:2110
poj 3669 Meteor Shower(bfs)
DescriptionBessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they ...
分类:其他好文   时间:2015-09-04 23:50:57    阅读次数:186
[LeetCode] H-Index II
This problem is designed specifically to use binary search. In fact, in H-Index, someone has already used this idea (you may refer to this post :-))Th...
分类:其他好文   时间:2015-09-04 23:52:19    阅读次数:196
linq 分组
var data = from r in listRecords group r by new { ...
分类:其他好文   时间:2015-09-04 23:50:04    阅读次数:159
黑马程序员------进制转换
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ------- 在java中数字的表现形式一般有二进制,八进制,十进制,十六进制等,在平时的编程中我们可以通过java提供的API函数方便的实现各个进制间的转换,如:Integer.toHexString(in....
分类:其他好文   时间:2015-09-04 23:52:14    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!