All challenges
Algorithm challenge · DSA
Product of Array Except Self
Difficulty
medium
Time
~25m
Format
Single
Grading
Auto-graded
#python#javascript#typescript#go#java#cpp#rust#dsa#prefix-products#arrays
Mission file // read carefullymedium
Given nums, return an array out where out[i] is the product of all elements except nums[i]. Do it without division.
nums = [1,2,3,4] => [24,12,8,6]
Build with
productExceptSelf(nums: int[]) → int[]PythonJavaScriptTypeScriptGoJavaC++Rust
4 tests · 1 hidden
Auto-graded on submit
Start challenge
Sign in to save your progress.