mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 02:41:42 +08:00
update
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<p>假定一段路径记作字符串 <code>path</code>,其中以 "<code>.</code>" 作为分隔符。现需将路径加密,加密方法为将 <code>path</code> 中的分隔符替换为空格 "<code> </code>",请返回加密后的字符串。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>path = "a.aef.qerf.bb"
|
||||
|
||||
<strong>输出:</strong>"a aef qerf bb"
|
||||
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>限制:</strong></p>
|
||||
|
||||
<p><code>0 <= path.length <= 10000</code></p>
|
Reference in New Issue
Block a user