strtrim not working pls help me
Three years late here, but strtrim removes both leading and trailing white spaces. The test here is for the trailing scenario only.
Three and a bit years late too, but there may be a bigger problem with strtrim here, which is that apparently strtrim does not remove "null characters" (whether leading or trailing). This wasn't specifically required by the problem statement, but judging by test 3 it is needed here, and thus it seems that strtrim is especially unsuitable for test 3 (cf. Solution 1393480).
5737 Solvers
Return a list sorted by number of occurrences
1514 Solvers
Reverse the Words (not letters) of a String
297 Solvers
Create a square matrix of multiples
385 Solvers
Number of 1s in a binary string
2991 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!