1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-02-04 14:40:27 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/路径加密 [ti-huan-kong-ge-lcof].html

19 lines
518 B
HTML
Raw Normal View History

2023-12-09 18:53:53 +08:00
<p>假定一段路径记作字符串 <code>path</code>,其中以 "<code>.</code>" 作为分隔符。现需将路径加密,加密方法为将 <code>path</code> 中的分隔符替换为空格 "<code> </code>",请返回加密后的字符串。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre>
<strong>输入:</strong>path = "a.aef.qerf.bb"
<strong>输出:</strong>"a aef qerf bb"
</pre>
<p>&nbsp;</p>
<p><strong>限制:</strong></p>
<p><code>0 &lt;= path.length&nbsp;&lt;= 10000</code></p>