Software Engineer Sr Interview Questions

67,191 software engineer sr interview questions shared by candidates

You have been given two pieces of flammable rope. The speed at which each individual rope can burn is inconsistent, but if you light the end with a match, the short rope will take 30 minutes to burn and the long rope takes an hour. How can you used the ropes to determine when 45 minutes have passed?
avatar

Senior Software Engineer

Interviewed at GoDaddy

3.9
Sep 8, 2011

You have been given two pieces of flammable rope. The speed at which each individual rope can burn is inconsistent, but if you light the end with a match, the short rope will take 30 minutes to burn and the long rope takes an hour. How can you used the ropes to determine when 45 minutes have passed?

Given a string of words and a maxWidth, write a method that inserts new lines where appropriate to perform a word-wrap. (Wrap on word boundaries, assume " " is fine). Now, how does your implementation handle string with multiple spaces between words ... Are those extra spaces lost or preserved?
avatar

Senior Software Engineer

Interviewed at Apple

4.1
Nov 24, 2014

Given a string of words and a maxWidth, write a method that inserts new lines where appropriate to perform a word-wrap. (Wrap on word boundaries, assume " " is fine). Now, how does your implementation handle string with multiple spaces between words ... Are those extra spaces lost or preserved?

Viewing 331 - 340 interview questions

Glassdoor has 67,191 interview questions and reports from Software engineer sr interviews. Prepare for your interview. Get hired. Love your job.