Software Engineer New Grad Interview Questions

3,069 software engineer new grad interview questions shared by candidates

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).

String manipulation/recursion problem. Was a pain to parse the format of the string they gave me; I got kind of flustered in some of it, but the recruiter said it was okay and that it was a messy question designed to see how you break up a big problem into smaller parts.
avatar

Software Engineer Recent Grad

Interviewed at Google

4.4
Dec 15, 2014

String manipulation/recursion problem. Was a pain to parse the format of the string they gave me; I got kind of flustered in some of it, but the recruiter said it was okay and that it was a messy question designed to see how you break up a big problem into smaller parts.

Viewing 2221 - 2230 interview questions

Glassdoor has 3,069 interview questions and reports from Software engineer new grad interviews. Prepare for your interview. Get hired. Love your job.