Software Interview Questions

551,386 software interview questions shared by candidates

Given an array of n numbers, return an array ans such that ans[i] contains the product of all elements in array except array[i]. Ex. array = {1, 7, 4, 3}, ans = {84, 12, 21, 28}. Do this in O(n) time and without using division.
avatar

Software Engineer Intern

Interviewed at Adobe

4.1
Aug 28, 2015

Given an array of n numbers, return an array ans such that ans[i] contains the product of all elements in array except array[i]. Ex. array = {1, 7, 4, 3}, ans = {84, 12, 21, 28}. Do this in O(n) time and without using division.

Viewing 2971 - 2980 interview questions

Glassdoor has 551,386 interview questions and reports from Software interviews. Prepare for your interview. Get hired. Love your job.