diff --git a/Top150Interview/238ProductofArrayExceptSelf.py b/Top150Interview/238ProductofArrayExceptSelf.py new file mode 100644 index 0000000..9972706 --- /dev/null +++ b/Top150Interview/238ProductofArrayExceptSelf.py @@ -0,0 +1,12 @@ +def productExceptSelf(nums): + """ + :type nums: List[int] + :rtype: List[int] + """ + answer = nums + for i in range(len(nums)): + if answer[i] == nums[i]: + + return answer + +productExceptSelf([1,2,3,4]) \ No newline at end of file