Cody

Solution 2026658

Submitted on 18 Nov 2019 at 17:04 by Asif Newaz
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
m = '1B'; n='10'; y_correct = '2B'; assert(isequal(hex_add(m,n),y_correct))

a = 27 b = 16 y = '2B'

2   Pass
m = '1B0'; n='10'; y_correct = '1C0'; assert(isequal(hex_add(m,n),y_correct))

a = 432 b = 16 y = '1C0'

3   Pass
m = '1B0'; n='F'; y_correct = '1BF'; assert(isequal(hex_add(m,n),y_correct))

a = 432 b = 15 y = '1BF'

4   Pass
m = '1B0'; n='F'; y_correct = '1BF'; assert(isequal(hex_add(m,n),y_correct))

a = 432 b = 15 y = '1BF'

5   Pass
m = '25'; n='25'; y_correct = '4A'; assert(isequal(hex_add(m,n),y_correct))

a = 37 b = 37 y = '4A'