Cody

Problem 44267. Brain Teaser Solver

Solution 2957191

Submitted on 17 Sep 2020 by Rafael S.T. Vieira
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 = 4; B = 3; C = 2; correct_ans = 7; assert(isequal(BT_Solver(A,B,C),correct_ans))

2   Pass
A = 4; B = 3; C = 5; correct_ans = 8; assert(isequal(BT_Solver(A,B,C),correct_ans))

3   Pass
A = 30; B = 14; C = 15; correct_ans = 41; assert(isequal(BT_Solver(A,B,C),correct_ans))

4   Pass
A = 3; B = 5; C = 12; correct_ans = 16; assert(isequal(BT_Solver(A,B,C),correct_ans))

5   Pass
A = 54; B = 48; C = 90; correct_ans = 132; assert(isequal(BT_Solver(A,B,C),correct_ans))

Suggested Problems

More from this Author2

Community Treasure Hunt

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

Start Hunting!