mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-13 01:15:14 +08:00
update
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
<li>将 <code>nums[i]</code> 和 <code>nums[j]</code> 都减去 <code>2<sup>k</sup></code> 。</li>
|
||||
</ul>
|
||||
|
||||
<p>如果一个子数组内执行上述操作若干次后,该子数组可以变成一个全为 <code>0</code> 的数组,那么我们称它是一个 <strong>美丽</strong> 的子数组。</p>
|
||||
<p>如果一个子数组内执行上述操作若干次(包括 0 次)后,该子数组可以变成一个全为 <code>0</code> 的数组,那么我们称它是一个 <strong>美丽</strong> 的子数组。</p>
|
||||
|
||||
<p>请你返回数组 <code>nums</code> 中 <strong>美丽子数组</strong> 的数目。</p>
|
||||
|
||||
<p>子数组是一个数组中一段连续 <strong>非空</strong> 的元素序列。</p>
|
||||
|
||||
<p><strong>注意:</strong>所有元素最初都是 0 的子数组被认为是美丽的,因为不需要进行任何操作。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
Reference in New Issue
Block a user