Description There are N cities in a country, and
there is one and only one simple path between each pair of cities. A merchant
has chosen some paths a...
分类:
其他好文 时间:
2014-04-30 17:09:30
阅读次数:
570
在ios7真机上和iOS6模拟器上运行是好的,而在iOS6真机上运行却报错解决方法:或是都设置为yes。。Build Active Architecture
Only的意思是只生成适应的指令集
分类:
移动开发 时间:
2014-04-30 14:39:37
阅读次数:
447
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-04-30 00:21:32
阅读次数:
536
Carmichael Numbers An important topic nowadays in
computer science is cryptography. Some people even think that cryptography is
the only important fi....
分类:
其他好文 时间:
2014-04-29 16:31:45
阅读次数:
504
DescriptionLetxandybe two strings over some finite
alphabetA. We would like to transformxintoyallowing only operations given
below:Deletion:a letter i...
分类:
其他好文 时间:
2014-04-29 16:22:00
阅读次数:
450
Binary String Matching时间限制:3000ms |
内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and
‘1’. Your task is only to tell ho...
分类:
其他好文 时间:
2014-04-29 15:02:00
阅读次数:
564
Problem illustration:given a n*n matrix, print
its transition, for example , 90 degree clockwise,using only constant additional
spaceanalysis:using O(...
分类:
其他好文 时间:
2014-04-28 03:22:07
阅读次数:
513
2014-04-27
20:06题目:设计一个类,只有在不产生死锁的时候才分配资源。解法:不太清楚这个题是要分配何种资源,以何种形式?所以没能动手写个可运行的代码,只是闲扯了几句理论分析。代码:
1 // 16.4 Design a class which provides a lock only ...
分类:
编程语言 时间:
2014-04-28 01:21:58
阅读次数:
558
迪米特法则(Law of Demeter)又叫作最少知识原则(Least Knowledge Principle 简写LKP),就是说一个对象应当对其他对象有尽可能少的了解,不和陌生人说话。英文简写为: LoD.
迪米特法则可以简单说成:talk only to your immediate friends。 对于面向OOD来说,又被解释为下面几种方式:一个软件实体应当尽可能少的与其他实...
分类:
其他好文 时间:
2014-04-27 18:00:46
阅读次数:
534