This solution is outdated. To rescore this solution, sign in.
-
8 Comments
Tricky solution!
How do I view solutions? Everything is locked. It says I may solve ANOTHER problem to unlock, but I keep solving and everything is still locked. Not terribly helpful.
You have to solve additional problems and then come back to look at the solutions here.
Nice and simple "math" solution!
if i can do that i dont need to view this solution,what a stupid rule
so stupid rule!!
what is this?
@Minyoung Hong It's a trick to decrease the solution size. The actual code is in the (?@...) construct in the regular expression, and is evaluated using match-time code evaluation. See doc regexp for more information; but note that this trick is generally frowned upon on Cody.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!