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
Test for balanced parentheses
Back to basics 10 - Max Float
Vectorize the digits of an Integer
Circular Primes (based on Project Euler, problem 35)
Twins in a Window
Eliminate Polysyllabics: Long live short words!
Is It a Snake?
Remove the air bubbles
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