Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 'this is demo of replacing spaces with stars';
y_correct = 'this*is*demo*of*replacing*spaces*with*stars';
assert(isequal(get_stars(x),y_correct))
x =
'this*is*demo*of*replacing*spaces*with*stars'
y =
'this*is*demo*of*replacing*spaces*with*stars'
|
2 | Pass |
x = 'check if you can get double stars here';
y_correct = 'check**if**you**can**get*double**stars**here';
assert(isequal(get_stars(x),y_correct))
x =
'check**if**you**can**get*double**stars**here'
y =
'check**if**you**can**get*double**stars**here'
|
3 | Pass |
x = 'Open your mouth,Haaa Haaa Haaaa ';
y_correct = 'Open*your*mouth,Haaa****Haaa***Haaaa***';
assert(isequal(get_stars(x),y_correct))
x =
'Open*your*mouth,Haaa****Haaa***Haaaa***'
y =
'Open*your*mouth,Haaa****Haaa***Haaaa***'
|
middleAsColumn: Return all but first and last element as a column vector
314 Solvers
Find nearest prime number less than input number
181 Solvers
261 Solvers
Determine the number of odd integers in a vector
320 Solvers
395 Solvers