Amazon Interview Question

They are asking very tricky question. Question was .. How to reverse a String Word By Word. First They are ask of reverse a string .. then reverse a string with words by words with space .. then Without using space ... More and more complexity

Interview Answer

Anonymous

Oct 17, 2013

you can first reverse whole string. Then You can reverse word by word.