For some reason, regexp manages to interpret the string input as an anonymous function, call this function and return the output. I must say I don't really understand how this works. Why does regexp call the function when comparing the two strings? Is it a bug?
Anyway, this is really ugly code; it would be fine if the Cody team would remove the possibilities to use regexp, str2num etc to score cheap size points.
Agree with Jacob
i also agree with jacob
Definitely agree with Jacob too!
Thanks for the feedback. We will discuss and see if we can ban the use of regexp
Thanks for your attention, Aditya Jain :-)
解决1154
Sum of diagonal of a square matrix
1392 Solvers
Vectorize the digits of an Integer
278 Solvers
Is this triangle right-angled?
3561 Solvers
3255 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!