Cody

Problem 45260. Alternate list of elements

Solution 2084175

Submitted on 8 Jan 2020 by Tim
  • Size: 17
  • This is the leading solution.
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 = ['a', 'b', 'c']; y = ['1', '2', '3']; z_correct = 'a1b2c3'; assert(isequal(your_fcn_name(x,y),z_correct))

2   Pass
x = ['c', 'a', 'b', 'f']; y = ['3', '1', '2', '0']; z_correct = 'c3a1b2f0'; assert(isequal(your_fcn_name(x,y),z_correct))

3   Pass
x = ['c', '1', 'b', 'f']; y = ['3', '1', '2', '0']; z_correct = 'c311b2f0'; assert(isequal(your_fcn_name(x,y),z_correct))

Suggested Problems

More from this Author10

Community Treasure Hunt

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

Start Hunting!