摘要:
Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requirement: Suppose this list is [a1, a2, a3, ... ... 阅读全文
posted @ 2018-01-10 22:58
xiejunzhao
阅读(198)
评论(0)
推荐(0)
摘要:
Given two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. We want to find an index mapping P, from A to B. A mapping P[i] ... 阅读全文
posted @ 2018-01-10 22:58
xiejunzhao
阅读(324)
评论(0)
推荐(0)

浙公网安备 33010602011771号