摘要:
he partition of an integer is a way of writing it as a sum of positive integers. For example, the partitions of the number 5 are:54+13+22+2+12+1+1+11+... 阅读全文
摘要:
Implement the integral part logn base 2 with bit manipulationsint integralPartOfLog(unsigned int n){ int ret = 0; while (n > 0) { n =... 阅读全文
摘要:
/* In "the 100 game," two players take turns adding, to a runningtotal, any integer from 1..10. The player who first causes the runningtotal to reach ... 阅读全文