Cody

Solution 1124612

Submitted on 16 Feb 2017 by Jihye Sofia Seo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = 'Help'; y_correct = 'eHpl'; assert(isequal(reverse_within_string(x),y_correct))

l = 4 firstHalf = He secondHalf = lp y = eHpl

2   Pass
x = 'between'; y_correct = 'tebwnee'; assert(isequal(reverse_within_string(x),y_correct))

l = 7 [Warning: Integer operands are required for colon operator when used as index] firstHalf = bet secondHalf = een y = tebwnee