《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.)

本文介绍了一种方法,用于在给定字符串的末尾有足够的空间时,将所有空格替换为%20。这种方法适用于Java实现,并在字符数组中进行操作。

4116

被折叠的 条评论
为什么被折叠?



