The problem description says the output array elements can be in any order but the test cases seem to prefer some unknown order. Solution 682952 produces an array with same elements as the actual solution but the tests fail. Need a better description of the output desired or a more robust test suite.
Solution 682952 produces correct array, but doesn't pass it to the output.
Good Problem :)
This (and others, including Solution 1444556) only pass because of a mismatch between the Test Suite and the Problem Statement.
Sorry, I don't normally do this, but my curiosity about the whole regexp() thing finally got the better of me...
yes, but you are blocking others from learning the optimal solution. lame
Make a checkerboard matrix
Back to basics 1 - Saving
Back to basics 13 - Input variables
Will there be a new leader?
Rotate and display numbered tile
Simulate one complete step in the Biham–Middleton–Levine traffic model
How Many Months Until It's Today Again?
Would Homer Like It?
Make a run-length companion vector
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office