登录
注册
写文章
首页
下载APP
会员
IT技术
Product of Array Except Self
98Future
关注
赞赏支持
Product of Array Except Self
这题本来的想法是用一个total把所有数乘起来,然后碰到哪个数divide掉。 但是有可能出现的0的情况真是让我很无奈。
这个解太屌了。。。左右扫描线啊!!
最后编辑于 :
2017.12.10 02:34:07
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读
更多精彩内容
238. Product of Array Except Self
题目 解析 给定一个整数数组,求每个位置上,除了这个位置上的数的其他数的乘积。第一遍就AC且是discuss中最高...
yxwithu
阅读 97
评论 0
赞 0
#238. Product of Array Except Self
https://leetcode.com/problems/product-of-array-except-sel...
Double_E
阅读 492
评论 0
赞 0
238. Product of Array Except Self
Given an array of n integers where n > 1, nums, return an...
exialym
阅读 249
评论 0
赞 0
Leetcode - Product of Array Except Self
My code: My test result: 这次题目我没做出来,因为实在想不出来有什么办法可以在O(n) 下...
Richardo92
阅读 477
评论 1
赞 1
Leetcode解题笔记-238. Product of Array Except Self
题目描述 原题链接:Product of Array Except Self Given an array of ...
JianlingZhou
阅读 1,342
评论 0
赞 1
赞
1赞
赞赏
手机看全文