Cody

Problem 2151. Reverse within string

Solution 397110

Submitted on 5 Feb 2014 by Abdullah Caliskan
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
%% x = 'Help'; y_correct = 'eHpl'; assert(isequal(reverse_within_string(x),y_correct))

p = 4 j = pleH ans = eHpl

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

p = 7 j = neewteb [Warning: Integer operands are required for colon operator when used as index] [> In reverse_within_string at 7 In verifyCode>evaluateCode at 231 In verifyCode at 40 In fevalJSON at 14] [Warning: Integer operands are required for colon operator when used as index] [> In reverse_within_string at 7 In verifyCode>evaluateCode at 231 In verifyCode at 40 In fevalJSON at 14] ans = tebwnee

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!