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 Solvers977
Suggested Problems
-
Remove any row in which a NaN appears
7942 Solvers
-
2906 Solvers
-
3152 Solvers
-
Calculate the Levenshtein distance between two strings
986 Solvers
-
Number of 1s in the Binary Representation of a Number
404 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!