算法,替换空格
Liam_Fang_
人工智能,文字识别
展开
-
Java实现替换空格
如题所示:请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy. public class ReplaceChar { /** * @param args */ public static void main(String[] args) {原创 2017-10-23 21:34:41 · 13859 阅读 · 0 评论 -
leecode_2
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: ...翻译 2018-09-23 19:17:05 · 132 阅读 · 0 评论