Engineer Developer Interview Questions

467,523 engineer developer 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 1351 - 1360 interview questions

Glassdoor has 467,523 interview questions and reports from Engineer developer interviews. Prepare for your interview. Get hired. Love your job.