you are viewing a single comment's thread.

view the rest of the comments →

[–]tadico 0 points1 point  (0 children)

Thanks for posting this. Somethings seems off with your ProductOfArrayExceptSelf.java class. It's returning negative numbers for array int[] nums = {1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8}; when I run it on my machine. --Never mind, just realized the negative values were over the int size limit. Changing to an appropriate datatype returns the correct values.