1.Mah.ceil() * Returns the smallest (closest to negative infinity) * {@code double} value that is greater than or equal to the * argument and is equal ...
分类:
编程语言 时间:
2017-09-04 11:55:23
阅读次数:
145
The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For e ...
分类:
其他好文 时间:
2017-09-03 21:04:53
阅读次数:
162
Note: 1. Very smart way of calculating how many difference from bits: https://en.wikipedia.org/wiki/Hamming_distance#Algorithm_example 2. Another way ...
分类:
其他好文 时间:
2017-09-03 16:38:14
阅读次数:
117
理解关系数据库(关系模型),需要了解关系代数(关系模型)。 关系代数有如下演算。 ◆4つの集合演算 和集合演算(Union) 差集合演算(Difference) 共通集合演算(Intersection) 直積演算(Cartesian Product) ◆4つの関係演算 射影演算(Projection ...
分类:
其他好文 时间:
2017-09-03 16:05:52
阅读次数:
246
1. Difference between Thread.sleep and Object.wait Thread.sleep: 会让当前线程休眠进入阻塞状态并释放CPU,提供其他线程运行机会且不考虑优先级,但如果持有同步锁,不会释放 Thread.yield: 类似sleep方法,但无法指定时间并 ...
分类:
编程语言 时间:
2017-09-03 15:38:27
阅读次数:
165
PSR-4 is something like 'relative path', PSR-0, 'absolute path'. e.g. config: PSR-0 autoload: PSR-4 autoload: And there are some more difference in de ...
分类:
其他好文 时间:
2017-09-02 16:58:57
阅读次数:
157
找出能被两个给定参数和它们之间的连续数字整除的最小公倍数。 范围是两个数字构成的数组,两个数字不一定按数字顺序排序。 例如对 1 和 3 —— 找出能被 1 和 3 和它们之间所有数字整除的最小公倍数。 如果你被卡住了,记得开大招 Read-Search-Ask 。尝试与他人结伴编程、编写你自己的代 ...
分类:
其他好文 时间:
2017-09-02 15:37:30
阅读次数:
126
http://acm.hdu.edu.cn/showproblem.php?pid=5936 题意: 定义了这样一种算法,现在给出x和k的值,问有多少个y是符合条件的。 思路: y最多只有10位,再多x就是负的了。 这样的话可以将y分为前后两部分,我们先枚举后5位的情况,然后再枚举前5位的情况,通过 ...
分类:
其他好文 时间:
2017-08-30 20:46:28
阅读次数:
216
题目: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: T ...
分类:
其他好文 时间:
2017-08-24 10:43:09
阅读次数:
168
set ==》》不允许重复集合列表 list ==》》可以修改 tuple==》》不可以修改 dict==》》可以修改 创建 set set集合是个无需不重复的集合 difference对象 ...
分类:
其他好文 时间:
2017-08-21 11:54:48
阅读次数:
172