1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/路径加密 [ti-huan-kong-ge-lcof].html
2023-12-09 18:53:53 +08:00

19 lines
518 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>