08 2015 档案

对象池模式
摘要:1.什么是对象池(Object Pool) ?池(Poo), 与集合在某种意义上有些相似。 水池,是一定数量的水的集合;内存池,是一定数量的已经分配好的内存的集合;线程池,是一定数量的已经创建好的线程的集合。那么,对象池,顾名思义就是一定数量的已经创建好的对象(Object)的集合。2.对象池是干什... 阅读全文

posted @ 2015-08-31 14:19 Stomach_ache 阅读(280) 评论(0) 推荐(0) 编辑

name mangling
摘要:详细资料 阅读全文

posted @ 2015-08-30 12:50 Stomach_ache 阅读(94) 评论(0) 推荐(0) 编辑

Haskell: What is Weak Head Normal Form
摘要:Stack Overflow 阅读全文

posted @ 2015-08-29 18:40 Stomach_ache 阅读(154) 评论(0) 推荐(0) 编辑

取模运算和取余运算的区别
摘要:Haskell中有两个函数:mod, rem,前者是取模,后者为取余。当两个操作数都是同号时两者无差别。异号则体现出计算过程的差异。摘百度百科的说明:取模取余运算区别对于整型数a,b来说,取模运算或者求余运算的方法都是:1.求 整数商: c = a/b;2.计算模或者余数: r = a - c*b.... 阅读全文

posted @ 2015-08-28 20:05 Stomach_ache 阅读(1185) 评论(0) 推荐(1) 编辑

a common method to rotate the image
摘要:1 /* 2 * clockwise rotate 3 * first reverse up to down, then swap the symmetry 4 * 1 2 3 7 8 9 7 4 1 5 * 4 5 6 => 4 5 6 => 8 5 2 6 * ... 阅读全文

posted @ 2015-08-27 21:18 Stomach_ache 阅读(168) 评论(0) 推荐(0) 编辑

代码静态分析工具
摘要:今天在haskell群里请教问题时,某巨说我需要hlint,然而我并不知道hlint是什么鬼。 (haskell linter)也就是haskell的代码静态分析工具。并不会对代码进行编译,只是会给出一些tips。可以帮助代码变得 strong,safe and so on.然后出于好奇,便找了一个... 阅读全文

posted @ 2015-08-26 18:35 Stomach_ache 阅读(217) 评论(0) 推荐(0) 编辑

LeeCode-Single Number III
摘要:Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements t... 阅读全文

posted @ 2015-08-23 18:44 Stomach_ache 阅读(228) 评论(0) 推荐(0) 编辑

七夕这天
摘要:昨天下午到宝山区找了妹子,今天中午回到公司。衷心希望妹子司考一次通过。下午做了会多校,有道题用的bitset,一直很不解到底bitset优化到了什么程度,开始在群里问了问,有巨巨回答是32倍。于是我就把bitset的源码翻了出来看,果然是这样。算是了结了一个心头大患吧。源码在这里。接着,从bitse... 阅读全文

posted @ 2015-08-20 20:11 Stomach_ache 阅读(176) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示