looK@Once
learn,unlearn,relearn..!!
Pages
Root
JavaHub
DataStructure
PuzZlesHub
Sunday, September 8, 2013
Reversing a sentence.
Problem:
WAP reverse a given sentence word by word.
Sample Input :
India is in Asia.
Sample Output :
Asia in is India.
Algorithm:
Reverse each word.
After that Reverse Full sentence.
Source Code:
Junit Test case for above Program:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment