We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1f216 commit e5c15c8Copy full SHA for e5c15c8
array/product_of_all_other_elements.go
@@ -1,6 +1,6 @@
1
package array
2
3
-// ProductOfAllOtherElements solves the problem in O(n) time and O(1) space.
+// ProductOfAllOtherElements solves the problem in O(n) time and O(n) space.
4
func ProductOfAllOtherElements(list []int) []int {
5
if len(list) == 0 {
6
return list
0 commit comments