Engineer Interview Questions

935,577 engineer interview questions shared by candidates

Write a program that takes an integer and prints out all ways to multiply smaller integers that equal the original number, without repeating sets of factors. In other words, if your output contains 4 * 3, you should not print out 3 * 4 again as that would be a repeating set. Note that this is not asking for prime factorization only. Also, you can assume that the input integers are reasonable in size; correctness is more important than efficiency. PrintFactors(12) 12 * 1 6 * 2 4 * 3 3 * 2 * 2
avatar

Software Engineer

Interviewed at LinkedIn

3.8
Nov 25, 2014

Write a program that takes an integer and prints out all ways to multiply smaller integers that equal the original number, without repeating sets of factors. In other words, if your output contains 4 * 3, you should not print out 3 * 4 again as that would be a repeating set. Note that this is not asking for prime factorization only. Also, you can assume that the input integers are reasonable in size; correctness is more important than efficiency. PrintFactors(12) 12 * 1 6 * 2 4 * 3 3 * 2 * 2

You have two balls on different tracks, traveling without friction. Ball A is on a straight track traveling from left to right, from point a to point b. Ball B is on a track with a dip, traveling from left to right, also from point a to point b (same horizontal distance). Which ball arrives at point b first (or fastest)?
avatar

Solutions Engineer

Interviewed at Intapp

3.4
Jun 16, 2011

You have two balls on different tracks, traveling without friction. Ball A is on a straight track traveling from left to right, from point a to point b. Ball B is on a track with a dip, traveling from left to right, also from point a to point b (same horizontal distance). Which ball arrives at point b first (or fastest)?

Viewing 1971 - 1980 interview questions

Glassdoor has 935,577 interview questions and reports from Engineer interviews. Prepare for your interview. Get hired. Love your job.