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?
Sr Software Engineer Interview Questions
67,762 sr software engineer 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