Problem 2300. Natural numbers in string form
Solution Stats
Problem Comments
-
2 Comments
Seems that assert will accept string array instead of cell array. Shouldn't they be treated differently?
Don't think too hard about this set of problems, it's earlier then you think
Solution Comments
-
1 Comment
Again with regexp, and it's not elegant either. But regexp cannot be banned from solutions. Solution could be either changing how the size is calculated, taking into account the content of regexp (not sure how challenging it is to do it programmatically), or discarding solutions which have this format
-
3 Comments
Cheat
Please remove all the solutions from ChanXy which only bypass the assert function. They don't help no one...
There should be a check in the Cody evaluation to avoid this hack.
Agree with you
Problem Recent Solvers969
Suggested Problems
-
4046 Solvers
-
Sum of diagonal of a square matrix
1490 Solvers
-
Arrange vector in ascending order
726 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
482 Solvers
-
706 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!