码迷,mamicode.com
首页 >  
搜索关键字:low case    ( 12880个结果
Anagrams
题目 Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 方法 题目中是找出所有的字符串由相同的字符组成,只是顺序不同。 public List anagrams(St...
分类:其他好文   时间:2014-06-19 10:46:45    阅读次数:207
使用 jackson 解析 json 示例
首先需要下载3个包,下载地址在Github ,这三个核心模块分别是: Streaming ("jackson-core") defines low-level streaming API, and includes JSON-specific implementations Annotations ("jackson-annotations") contains standard Jack...
分类:Web程序   时间:2014-06-19 10:02:33    阅读次数:291
Enumeration & Structures & Protocl & Extension
【Enumeration and Structures】1、使用toRaw、fromRaw方法可以在原始值之间。注意enum的定义中使用了case。另外要注意switch中的枚举值。 2、struct和class最大的区别在于,struct被传递时,使用的是使用的是copy。 3、枚举变量可以有.....
分类:其他好文   时间:2014-06-13 19:53:46    阅读次数:343
Tarjan算法各种&RMQ& POJ 3694
关于tarjan的思想可以在网上搜到,具体我也不太清楚,应该说自己理解也不深,下面是做题经验得到的一些模板。其中有很多转载,包括BYVoid等,感谢让我转。。。望各路大神愿谅有向图求连通分量的一般方法: 1 void Tarjan(u) { 2 dfn[u]=low[u]=++index 3...
分类:其他好文   时间:2014-06-13 16:14:11    阅读次数:395
LeetCode: Anagrams 题解
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题解: 判断字符串是否为回文构词法生成的。找出所有由同一回文构词法生成的字...
分类:其他好文   时间:2014-06-12 13:51:32    阅读次数:200
*HDU 1394 经典逆序数的四种解法
1、暴力【代码】: 1 /*HDU1394暴力写法*/ 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 int A[50005]; 9 int Low[50005],Up[50005];10 int main(){...
分类:其他好文   时间:2014-06-12 12:02:37    阅读次数:191
《Code Complete》ch.18 表驱动法
是什么一种scheme,用表来做信息存取,代替逻辑语句(if/else)为什么简化逻辑语句,避免大量嵌套的 if/else 或者 switch/case怎么用三种访问表的方式直接访问:将源数据作为key索引访问:构建KV表阶梯访问:分为连续区间,遍历或者二分查找例子// get the full n...
分类:其他好文   时间:2014-06-12 11:54:23    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!