李娜“雷人”语录 (转载)# Joke - 肚皮舞运动
f*4
1 楼
Imagine you've a sorted list of strings and its encoded into
another list, how do you determine the decoding scheme?
LZ没具体解释。下面有人给了个例子:
Sorted list:
abc
bcd
bcde
efghi
Encoded list:
bca
cdb
cdeb
fghie
如果encoding scheme可以是任何形式,比如调换次序,调换字母,甚至更复杂的
方式,有什么好办法么?
another list, how do you determine the decoding scheme?
LZ没具体解释。下面有人给了个例子:
Sorted list:
abc
bcd
bcde
efghi
Encoded list:
bca
cdb
cdeb
fghie
如果encoding scheme可以是任何形式,比如调换次序,调换字母,甚至更复杂的
方式,有什么好办法么?