##题目:请实现一个函数,把字符串中的每个空格替换成%20。例如输入“We are happy.",则输出”We%20are%20happy."。最容易想到的是,从头到尾扫描,每次碰到空格就替换。但是时间复杂度为o(n2)。时间复杂度为o(…
From: http://www.safe5.com/patch/xitongloudong/linux/20120305/27116.html
bash Shell Prompt Characters Character \a The bell character \d The date in the format ‘‘Day Month Date’’ \e The ASCII escape character \h The local hostname \H The fully qual…