POD-28-Sep-2016

Ankur Kulhari

In continuation to POD-27-Sep-2016,
Write a program to reverse characters of each word of a user provided sentence, omitting repeated letters . Sentence can be of variable length and may contain any number of words.
Ex:
Hello, how are you?
oleH, w ra uy?
Note: sentence breaking symbols, like: , . ? etc should remain at their original position.
Hint: Break the problem into small tasks as: 1st try to reverse characters of a word, then think how to separate words from each other and from sentence breaking symbols, then integrate all these tasks.

What do you think about the article?

This site uses Akismet to reduce spam. Learn how your comment data is processed.