【leetcode_medium】238. Product of Array Except Self

leetcode_medium_array

problem

238. Product of Array Except Self

solution #1: 将乘积分为前后两部分相乘的结果;

code

 

solution #2: 空间优化;

code:

 

 

参考

1. leetcode_238. Product of Array Except Self;

2. Grandyang;

posted on 2020-09-15 21:03  鹅要长大  阅读(138)  评论(0编辑  收藏  举报

导航