Problem Link: http://www.spoj.com/problems/TOANDFRO/

Problem is about decoding the message. But the decoding of the string is trivial in this problem. If you how to insert data in what ever way you want, the problem is done.

Solution Link: https://github.com/bharaththiruveedula/Algorithms/blob/master/SPOJ/TOANDFRO.java

Advertisements