码迷,mamicode.com
首页 >  
搜索关键字:java metrics    ( 298572个结果)
欧拉计划21-23题
21、Amicable numbersLet d(n) be defined as the sum of proper divisors ofn(numbers less thannwhich divide evenly inton). If d(a) =band d(b) =a, whereab,...
分类:其他好文   时间:2014-05-02 09:28:12    阅读次数:776
记C语言浮点数运算处理 "坑" 一则
看一小段C语言程序:int main(){ float x = 1.3; x = x - (int)x; int i = (int)(x*10); return 0;}在你心目中, 变量 I 是怎样的结果?如果你理所当然地认为是3的话, 那么你就错了~~~实际结果应该是2. ...
分类:编程语言   时间:2014-05-02 09:23:52    阅读次数:288
Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-05-02 09:10:46    阅读次数:252
转载2
js实现css、addClass、removeClass和toggleClass时间:2014-03-04 13:35来源:未知 作者:plam401 js实现css、addClass、removeClass和toggleClass-->JQuery中获取CSS样式css(name):访问第一匹配元...
分类:其他好文   时间:2014-05-02 08:59:58    阅读次数:315
设计模式之迭代器模式
GOF给出的定义为:提供一种方法访问一个容器(container)对象中各个元素,而又不需暴露该对象的内部细节。它的目的:提供一种方法顺序访问一个聚合对象中各个元素, 而又不需暴露该对象的内部表示。[GOF 《设计模式》]如果大家只看定义的话估计也不太清楚吧,怎么说呢,从简单来讲,大家可以把它理解为...
分类:其他好文   时间:2014-05-02 08:51:18    阅读次数:319
JAVA中获取当前系统时间
转自:http://www.cnblogs.com/Matrix54/archive/2012/05/01/2478158.html一. 获取当前系统时间和日期并格式化输出: 1 import java.util.Date; 2 import java.text.SimpleDateFormat; ...
分类:编程语言   时间:2014-05-02 08:36:13    阅读次数:811
Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:其他好文   时间:2014-05-02 07:05:08    阅读次数:311
ui的设计原则
部分网页设计原则 规划目录结构时应当遵循的几个原则: 1.不要将所有文件都存放在根目录下; 2.按栏目内容分别建立子目录; 3.在每个主目录下都建立独立的images目录; 4.目录的层次不要太深; 5.切忌使用中文目录; 6.不要使用过长的目录; 7.尽量使用意义明确的目录。 ...
分类:其他好文   时间:2014-05-02 06:58:41    阅读次数:338
[转]java将字符串写入文件中
Java代码 importjava.io.File;importjava.io.FileNotFoundException;importjava.io.FileOutputStream;importjava.io.FileWriter;importjava.io.IOException;import...
分类:编程语言   时间:2014-05-02 06:13:08    阅读次数:477
WebMisSharp,WebMisCentral,企业框架正则表达式规则共享专版
ElegantWM.WebUI/Application/common/src/Tools.js欢迎大家贡献更多的正则验证规则,目前支持如下:/*****************************************************************//* VType自定义校验...
分类:Web程序   时间:2014-05-02 06:04:30    阅读次数:346
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!