Cody

Problem 45773. Mo money, mo math #2! (★★★)

Solution 2754223

Submitted on 29 Jul 2020 by Rafael Hernandez-Walls
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
a = [ 1 0 0 0; 0 0 0 24]; b = 1; assert(isequal(your_fcn_name(a),b))

a = 0.2500 0.2400 ans = 1

2   Pass
a = [ 1 22 1 15; 12 3 13 7; 10 8 23 99]; b = 3; assert(isequal(your_fcn_name(a),b))

a = 2.6500 4.0200 5.4400 ans = 3

3   Pass
a = [ 2 1 1 1; 1 2 1 1; 1 1 2 1; 1 1 1 2; 4 0 0 0]; c = 5; assert(isequal(your_fcn_name(a),c))

a = 0.6600 0.5100 0.4600 0.4200 1.0000 ans = 5

Suggested Problems

More from this Author46

Community Treasure Hunt

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

Start Hunting!