Last active
August 29, 2015 14:04
-
-
Save jikeytang/0144e458d9ab648eed85 to your computer and use it in GitHub Desktop.
[ Javascript ] - 20140730-题目1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 感谢[广州—坚壳]贡献 | |
编码字符串,要求能解码,且只能编码为字母和数字, | |
要求得到最短的编码长度。 | |
如: | |
setcode('你好a') -> ‘232abc'; | |
getcode('232abc') -> '你好a' | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
楼上的这个stringEncode传的字符串越多。执行函数出来的return 的字符串也越多,这样是不是失去意义了!!,如果这样的话 随便都可以弄一个了