您的位置:首页 > 其它

《CTCI》1.4 替换字符串中的空格为“%20”

2015-04-24 22:14 218 查看

《CITI》P111

1 数组与字符串

题目:

1.4 Write a method to replace all spaces in a string with ‘%20’. You may assume that the string has sufficient space at the end of the string to hold the additional characters, and that you are given the “true” length of the string. (Note: if implementing in Java, please use a character array so that you can perform this operation in place.)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  字符串
相关文章推荐