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?
Software Engineer Sr Interview Questions
67,762 software engineer sr interview questions shared by candidates
very basic RPN calculator question
Sorting algorithm for a string array
How to make class as Immutable
When was the last time you made a mistake?
Differences between Perl and Python
can you join in a week
Delete duplicate in sorted linked list
The racehorse problem: given 25 horses and no stopwatch, and you can only race 5 horses at the same time, how few races does it take to find the fastest horse?
Clone a linked list that has a cycle (do not fix the cycle). Is there a way to uniquely identify a node without relying on a hash code?
Viewing 331 - 340 interview questions
See Interview Questions for Similar Jobs
Software Engineering GraduateSoftware EngineeringSoftware Development Engineer New GradSoftware Engineer Software DeveloperJr Software EngineerSoftware Developer 2Junior Software Development EngineerSoftware Engineer CoopSoftware Engineer VSoftware Engineer C#Software Engineering New GradSoftware Engineer SeniorSoftware EngineerSoftware Engineer 2018Software Application DeveloperSoftware Development Engineer ISoftware Engineer EntrySoftware Developer Fresher