Cody

Solution 1988549

Submitted on 24 Oct 2019 by Nikolaos Nikolaou
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
inp = '1FUNDOG4YOU'; out_correct = 13863644968; assert(isequal(dial(inp),out_correct))

inp = '1FUNDOG4YOU' inp = '13UN3OG4YOU' inp = '13UN3O44YOU' inp = '13UN3O44YOU' inp = '13U63644Y6U' inp = '13U63644Y6U' inp = '13863644Y68' inp = '13863644968' out = 1.386364496800000e+10

2   Pass
inp = '1 (FUN) DOG-4-YOU #2'; out_correct = 0; assert(isequal(dial(inp),out_correct))

inp = '1 (FUN) DOG-4-YOU #2' inp = '1 (3UN) 3OG-4-YOU #2' inp = '1 (3UN) 3O4-4-YOU #2' inp = '1 (3UN) 3O4-4-YOU #2' inp = '1 (3U6) 364-4-Y6U #2' inp = '1 (3U6) 364-4-Y6U #2' inp = '1 (386) 364-4-Y68 #2' inp = '1 (386) 364-4-968 #2' out = [] out = 0