Given an array of strings, return all groups of
strings that are anagrams.Note: All inputs will be in
lower-case.输入一个字符串数组,返回所有回文构词法(anagrams)的字符串,所谓回...
分类:
其他好文 时间:
2014-07-22 23:15:54
阅读次数:
440
流程控制顺序执行流程条件分支流程if(布尔表达式) {}if(布尔表达式) {} else{}
if(表达式1){}else if(表达式2){}else if...else{}switch(int型表达式或变量) // byte short int
char string(1.7之后){ ...
分类:
编程语言 时间:
2014-07-22 23:10:35
阅读次数:
353
1、一般情况下,综合器将case语句综合成多路选择器,但也可能综合成优先级译码器。2、case语句中,如果条件列举不完全,将综合出不必要的锁存器。综合器指令://synopsysparallel_case&//synopsysfull_case使用//synopsysparallel_case可以引...
分类:
其他好文 时间:
2014-07-22 23:09:55
阅读次数:
291
2014-04-29 13:19:09先贴出打开远程(Linux)目录所需的配置文件{ //
The tab key will cycle through the settings when first created // Visit
http://wbond.net/sublime_...
分类:
其他好文 时间:
2014-04-30 20:49:48
阅读次数:
657
Should url be case sensitive?
分类:
其他好文 时间:
2014-04-30 17:25:43
阅读次数:
401
递归函数是在一个函数通过名字调用自身的情况下构成的。如下: function
self(num){ if(num<=1){ return 1; } else{ return num*self(num-1);
}}这是一个经典的求阶乘的函数。当在外面调用self(4)是可以得到24 ,...
分类:
编程语言 时间:
2014-04-30 14:41:43
阅读次数:
499
Problem description:given a string, find the
longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start
and end of the substring...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
308
一、 分类-Category1.
基本用途OC中如何在不改变原来类模型的前提下,给类扩充一些方法?有2种方式 1>.继承 2>.分类(Category)2.
格式分类的声明@interface 类名 (分类名称)// 方法声明@end分类的实现@implementation 类名 (分类名称)/.....
分类:
其他好文 时间:
2014-04-29 11:23:47
阅读次数:
384
js 验证手机号码 //验证手机号 function isMobel(value) { if
(/^1[3-8]+\d{9}$/g.test(value)) { return true; } else { return false; } }
分类:
移动开发 时间:
2014-04-29 11:12:46
阅读次数:
369
Are you worried that you will not be able to
migrate from http://tfs.visualstudio.com when they start charging for it and you
don’t want to pay? Fear ...
分类:
其他好文 时间:
2014-04-29 10:23:47
阅读次数:
496