Engineer Software Interview Questions

512,139 engineer software interview questions shared by candidates

Given a nested list of integers, return the sum of all integers in the list weighted by their depth For example, given the list {{1,1},2,{1,1}} the function should return 10 (four 1's at depth 2, one 2 at depth 1)
avatar

Software Engineer

Interviewed at LinkedIn

3.8
Jul 9, 2015

Given a nested list of integers, return the sum of all integers in the list weighted by their depth For example, given the list {{1,1},2,{1,1}} the function should return 10 (four 1's at depth 2, one 2 at depth 1)

Given a single-line text string and a maximum width value, write the function 'string justify(string text, int maxWidth)' that formats the input text using full-justification, i.e., extra spaces on each line are equally distributed between the words; the first word on each line is flushed left and the last word on each line is flushed right.
avatar

Software Engineer - Applications

Interviewed at LinkedIn

3.8
Jul 31, 2012

Given a single-line text string and a maximum width value, write the function 'string justify(string text, int maxWidth)' that formats the input text using full-justification, i.e., extra spaces on each line are equally distributed between the words; the first word on each line is flushed left and the last word on each line is flushed right.

Viewing 1601 - 1610 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 512,139 interview questions and reports from Engineer software interviews. Prepare for your interview. Get hired. Love your job.