摘要: Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes 阅读全文
posted @ 2016-04-27 13:54 Grandyang 阅读(820) 评论(2) 推荐(0) 编辑
摘要: 17.11 Implement a method rand7() given rand5(). That is, given a method that generates a random number between 0 and 4 (inclusive), write a method tha 阅读全文
posted @ 2016-04-27 12:24 Grandyang 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 17.10 Since XML is very verbose, you are given a way of encoding it where each tag gets mapped to a pre-defined integer value. The language/grammar is 阅读全文
posted @ 2016-04-27 11:13 Grandyang 阅读(961) 评论(0) 推荐(0) 编辑
Fork me on GitHub