this is a (fake) private repo
git clone https://github.com/wssgcg1213/homework-huffman
cd homework-huffman
npm i
npm start
you can get following
编码字符串: chongqinguniversityofpostsandtelecommunications
编码方案: { s: '000',
f: '00100',
y: '00101',
c: '0011',
i: '010',
o: '011',
l: '10000',
g: '10001',
e: '1001',
n: '101',
m: '11000',
r: '110010',
d: '110011',
t: '1101',
v: '111000',
p: '111001',
a: '11101',
q: '111100',
h: '111101',
u: '11111' }
编码结果: 00111111010111011000111110001010110001111111010101110001001110010000010110100101011001001110010110001101000111011011100111101100110000100100110111100011000111111010100011111011101010011101000