Sr Engineer Interview Questions

113,933 sr engineer interview questions shared by candidates

1st phase 1st technical interview: Problem was that given a positive integer n print all distinct ordered sets of positive integer which have sum equal n. eg:- for n=2 output: { [1, 1] } for n=3 output: { [1, 1, 1], [1, 2], [2, 1] } for n=4 output: { [1, 1, 1, 1], [1, 1, 2], [1, 2, 1], [2, 1, 1], [2, 2], [1, 3], [3, 1] }
avatar

Senior Software Engineer

Interviewed at Zenefits

3.8
May 27, 2015

1st phase 1st technical interview: Problem was that given a positive integer n print all distinct ordered sets of positive integer which have sum equal n. eg:- for n=2 output: { [1, 1] } for n=3 output: { [1, 1, 1], [1, 2], [2, 1] } for n=4 output: { [1, 1, 1, 1], [1, 1, 2], [1, 2, 1], [2, 1, 1], [2, 2], [1, 3], [3, 1] }

Viewing 511 - 520 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 113,933 interview questions and reports from Sr engineer interviews. Prepare for your interview. Get hired. Love your job.