Cody

Problem 45376. Maya - 02

Solution 2986501

Submitted on 24 Sep 2020 by Alfonso Nieto-Castanon
  • Size: 19
  • 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_02('..'),2))

2   Pass
assert(isequal(maya_02('.. .'),41))

3   Pass
assert(isequal(maya_02('... .. ....__'),1254))

4   Pass
assert(isequal(maya_02('__ ....__ _'),4285))

5   Pass
assert(isequal(maya_02('._ o ....__ __'),48290))

6   Pass
assert(isequal(maya_02('. o o o o'),160000))

7   Pass
assert(isequal(maya_02('__ .. _ ..._ o .___'),32363216))

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!