Senior Software Interview Questions

75,528 senior software 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 391 - 400 interview questions

Glassdoor has 75,528 interview questions and reports from Senior software interviews. Prepare for your interview. Get hired. Love your job.