Senior Software Engineer Interview Questions

64,424 senior software engineer 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 321 - 330 interview questions

Glassdoor has 64,424 interview questions and reports from Senior software engineer interviews. Prepare for your interview. Get hired. Love your job.