2708. Maximum Strength of a Group
You are given a 0-indexed integer array
numsrepresenting the score of students in an exam. The teacher would like to form one non-empty group of students with maximal strength, where the strength of a group of students of indicesi0,i1,i2, … ,ikis defined asnums[i0] * nums[i1] * nums[i2] * ... * nums[ik].Return the maximum strength of a group the teacher can create.
1 | class Solution { |