Software Developer New Grad Interview Questions

2,866 software developer new grad interview questions shared by candidates

questions were easy to solve 2d array question and classes-based callback function creation question. The follow-up questions were difficult. Optimal solution was answered but then the question was changed to cache topic and then I was asked how to optimize if we want to use cache. The question was 2d array in form of balanced binary tree and the last row decides if the root will be 1/0. If both children are 1 only then parent is 1 otherwise 0. For this cache was used later and I was asked to optimize it. We agreed till log(n) time complexity but the interviewer wanted something else.
avatar

Software Engineer New Grad

Interviewed at Everpure

3.5
Sep 13, 2024

questions were easy to solve 2d array question and classes-based callback function creation question. The follow-up questions were difficult. Optimal solution was answered but then the question was changed to cache topic and then I was asked how to optimize if we want to use cache. The question was 2d array in form of balanced binary tree and the last row decides if the root will be 1/0. If both children are 1 only then parent is 1 otherwise 0. For this cache was used later and I was asked to optimize it. We agreed till log(n) time complexity but the interviewer wanted something else.

A shop in HackerLand contains n items where the price of the ith item is priceli]. In one operation, the price of any one item can be increased or decreased by 1. Given q queries denoted by the array queryll, find the minimum number of operations required to make the price of all items equal to each queryli] (0 ≤ i < q).
avatar

Software Engineer New Grad

Interviewed at IBM

3.9
Sep 18, 2024

A shop in HackerLand contains n items where the price of the ith item is priceli]. In one operation, the price of any one item can be increased or decreased by 1. Given q queries denoted by the array queryll, find the minimum number of operations required to make the price of all items equal to each queryli] (0 ≤ i < q).

Viewing 2071 - 2080 interview questions

Glassdoor has 2,866 interview questions and reports from Software developer new grad interviews. Prepare for your interview. Get hired. Love your job.