AlgorithmAndLeetCode#itcharge-LeetCode-Py#0238. 除自身以外数组的乘积1

时间:2022-07-25 14:08:46
【文件属性】:

文件名称:AlgorithmAndLeetCode#itcharge-LeetCode-Py#0238. 除自身以外数组的乘积1

文件大小:1KB

文件格式:MD

更新时间:2022-07-25 14:08:46

leetcode

再从右到左遍历一遍,将 nums[i] 右侧的元素乘积累积起来,再乘以原本 res[i] 的值,即为 nums 中除了 nums[i] 之外的其他所有元素乘积。


网友评论