摘要:
Given n and k, return the k-th permutation sequence. Notice n will be between 1 and 9 inclusive. n will be between 1 and 9 inclusive. n will be betwee 阅读全文
posted @ 2016-04-04 13:41
哥布林工程师
阅读(117)
评论(0)
推荐(0)
摘要:
Given a permutation which may contain repeated numbers, find its index in all the permutations of these numbers, which are ordered in lexicographical 阅读全文
posted @ 2016-04-04 13:16
哥布林工程师
阅读(167)
评论(0)
推荐(0)
摘要:
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example Given n = 12, retu 阅读全文
posted @ 2016-04-04 10:25
哥布林工程师
阅读(131)
评论(0)
推荐(0)

浙公网安备 33010602011771号