mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 02:41:42 +08:00
批量更新数据
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
<ul>
|
||||
<li>一个字符的 <strong>哈希值</strong> 是它在 <strong>字母表</strong> 中的下标(也就是 <code>'a' →<!-- notionvc: d3f8e4c2-23cd-41ad-a14b-101dfe4c5aba --> 0</code> ,<code>'b' →<!-- notionvc: d3f8e4c2-23cd-41ad-a14b-101dfe4c5aba --> 1</code> ,... ,<code>'z' →<!-- notionvc: d3f8e4c2-23cd-41ad-a14b-101dfe4c5aba --> 25</code>)。</li>
|
||||
<li>将子字符串中字幕的 <strong>哈希值</strong> 求和。</li>
|
||||
<li>将子字符串中字母的 <strong>哈希值</strong> 求和。</li>
|
||||
<li>将和对 26 取余,将结果记为 <code>hashedChar</code> 。</li>
|
||||
<li>找到小写字母表中 <code>hashedChar</code> 对应的字符。</li>
|
||||
<li>将该字符添加到 <code>result</code> 的末尾。</li>
|
||||
|
Reference in New Issue
Block a user