mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 11:21:42 +08:00
add leetcode problem-cn part2
This commit is contained in:
14
算法题(国内版)/problem (Chinese)/替换空格 [ti-huan-kong-ge-lcof].html
Normal file
14
算法题(国内版)/problem (Chinese)/替换空格 [ti-huan-kong-ge-lcof].html
Normal file
@@ -0,0 +1,14 @@
|
||||
<p>请实现一个函数,把字符串 <code>s</code> 中的每个空格替换成"%20"。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>s = "We are happy."
|
||||
<strong>输出:</strong>"We%20are%20happy."</pre>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>限制:</strong></p>
|
||||
|
||||
<p><code>0 <= s 的长度 <= 10000</code></p>
|
Reference in New Issue
Block a user