Skip to content

Commit 8cd013c

Browse files
refactor 238
1 parent 68b5b17 commit 8cd013c

File tree

1 file changed

+0
-14
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-14
lines changed

src/main/java/com/fishercoder/solutions/_238.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 238. Product of Array Except Self
5-
*
6-
* Given an array of n integers where n > 1, nums,
7-
* return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].
8-
* Solve it without division and in O(n).
9-
* For example, given [1,2,3,4], return [24,12,8,6].
10-
11-
Follow up:
12-
Could you solve it with constant space complexity?
13-
(Note: The output array does not count as extra space for the purpose of space complexity analysis.)
14-
*/
15-
163
public class _238 {
174

185
public static class Solution1 {
@@ -23,7 +10,6 @@ public static class Solution1 {
2310
* res[i] *= right;
2411
* right *= nums[i];
2512
* that's it.
26-
*
2713
* This could be very well illustrated with this example: [1,2,3,4]
2814
*/
2915
public int[] productExceptSelf(int[] nums) {

0 commit comments

Comments
 (0)