Cody

Problem 45377. Maya - 03

Solution 2986507

Submitted on 24 Sep 2020 by Alfonso Nieto-Castanon
  • Size: 60
  • 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
assert(isequal(maya_03('.','..',@plus),'...'))

2   Pass
assert(isequal(maya_03('. o o o o','..',@minus),'....___ ....___ ....___ ...___'))

3   Pass
assert(isequal(maya_03('. o o o o','._ o ....__ __',@minus),'...__ ....___ _ __'))

4   Pass
assert(isequal(maya_03('. o o o o','._ o ....__ __',@plus),'. ._ o ....__ __'))

5   Pass
assert(isequal(maya_03('._','._',@minus),'o'))

6   Pass
assert(isequal(maya_03('._ _ _','_ _ _ ._',@plus),'_ .__ __ .__'))

Suggested Problems

More from this Author149

Community Treasure Hunt

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

Start Hunting!