Cody

Solution 1595247

Submitted on 29 Jul 2018 by Atsushi Ueno
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
str = 'This is a Test Case'; ans_corr = [3 12]; assert(isequal(counter_ul(str),ans_corr))

2   Pass
str = 'RandoM'; ans_corr = [2 4]; assert(isequal(counter_ul(str),ans_corr))

3   Pass
str = 'Hello World'; ans_corr = [2 8]; assert(isequal(counter_ul(str),ans_corr))

4   Pass
str = 'HELLO WORLD'; ans_corr = [10 0]; assert(isequal(counter_ul(str),ans_corr))

5   Pass
str = 'hello world'; ans_corr = [0 10]; assert(isequal(counter_ul(str),ans_corr))

6   Pass
str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; ans_corr = [26 0]; assert(isequal(counter_ul(str),ans_corr))

7   Pass
str = 'abcdefghijklmnopqrstuvwxyz'; ans_corr = [0 26]; assert(isequal(counter_ul(str),ans_corr))

8   Pass
str = '42'; ans_corr = [0 0]; assert(isequal(counter_ul(str),ans_corr))

9   Pass
str = 'Matlab'; ans_corr = [1 5]; assert(isequal(counter_ul(str),ans_corr))

Suggested Problems