0

Hi Guyz,

Here is a really tough problem to solve. Anyone can help out?

You need to encode and decode a message in a parallelogram matrix.

Eg. If input message is, "This is a problem" then you must put it inside a odd order matrix whose order is determined by the size of the message.

Then u to encode it, u must read the message in a spiral path starting from center cell. All empty spaces if any, in the matrix are filled with "/" which will not be present in the message.

Each Cell Contains 2 charachters

For the above statement the matrix is as follows,

[img]http://i55.tinypic.com/25icg79.jpg[/img]

The input and output are:

[img]http://i53.tinypic.com/2a6v1qu.jpg[/img]