Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
str = 'b';n=5
y_correct = 'bbbbb';
assert(isequal(duplicate_char(str,n),y_correct))
n =
5
ans =
[]
|
2 | Pass |
str = 's';n=1
y_correct = 's';
assert(isequal(duplicate_char(str,n),y_correct))
n =
1
ans =
[]
|
3 | Pass |
str = 'b';n=10
y_correct = 'bbbbbbbbbb';
assert(isequal(duplicate_char(str,n),y_correct))
n =
10
ans =
[]
|
4 | Pass |
str = 'b';n=0
y_correct = '';
assert(isequal(duplicate_char(str,n),y_correct))
n =
0
ans =
[]
|
5 | Pass |
str = '?';n=2
y_correct = '??';
assert(isequal(duplicate_char(str,n),y_correct))
n =
2
ans =
[]
|
Find the numeric mean of the prime numbers in a matrix.
5904 Solvers
735 Solvers
Remove the two elements next to NaN value
309 Solvers
Test if two numbers have the same digits
154 Solvers
120 Solvers