【文件属性】:
文件名称:leetcode不会-LeetCode_628--Maximum-Product-of-Three-Numbers:LeetCode_628-
文件大小:122KB
文件格式:ZIP
更新时间:2021-06-30 03:19:15
系统开源
leetcode
不会LeetCode_628--三数的最大积
给定一个整数数组,找出乘积最大的三个数,并输出最大的乘积。
示例
1:
输入:[1,2,3]
输出:6
示例
2:
输入:[1,2,3,4]
输出:24
笔记:
给定数组的长度在
[3,104]
范围内,所有元素都在
[-1000,
1000]
范围内。
输入中任何三个数字的乘法都不会超出
32
位有符号整数的范围。
【文件预览】:
LeetCode_628--Maximum-Product-of-Three-Numbers-master
----C()
--------runtime.PNG(26KB)
--------maximum_product_of_three_numbers.c(339B)
--------memory.PNG(26KB)
----Python3()
--------runtime.PNG(31KB)
--------maximum_product_of_three_numbers.py(163B)
--------memory.PNG(44KB)
----C++()
--------runtime.PNG(29KB)
--------maximum_product_of_three_numbers.cpp(278B)
--------memory.PNG(40KB)
----README.md(455B)