Cody

Solution 1900741

Submitted on 15 Aug 2019 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
s1 = 'My name is Sourav Mondal'; y_correct = 'MUYRNAAVMMEOINSDSAOL'; assert(isequal(transposition(s1),y_correct))

y1 = 'MYNAMEISSO' y2 = 'URAVMONDAL'

2   Pass
s1 = 'i am a common cipher'; y_correct = 'IOANMCAICPOHMEMR'; assert(isequal(transposition(s1),y_correct))

y1 = 'IAMACOMM' y2 = 'ONCIPHER'

3   Pass
s1 = 'BATMAN rules GOTHAM'; y_correct = 'BEASTGMOATNHRAUML'; assert(isequal(transposition(s1),y_correct))

y1 = 'BATMANRU' y2 = 'LESGOTHAM' y1 = '&BATMANRU' y2 = 'LESGOTHAM' y = 'LBEASTGMOATNHRAUM' y = 'BEASTGMOATNHRAUML'