I don't think the test suite works. It errors out with 'Undefined function or variable your_code'. Can't figure out why.
It works for me. It may be a little tricky.
I agree with Guillaume, the test suite can't work.
Someone already solved it yesterday. If I tell you how to solve that obstacle, I would make it a lot easier.
Just a little hint: I bet you can solve it in your own computer without changing the test suite.
The problem I believe is that your test suite is linux specific, so it's impossible to find why it doesn't work on a Windows computer. On Windows, your echo command creates invalid files as it writes the quotes to the files. If I remove the quote from your echos, my solution works fine on Windows.
That is true. But Cody is running on Unix. Anyhow, I have modified the test suite to be platform independent.
Test for balanced parentheses
Whether the input is vector?
Find nearest prime number less than input number
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Become the leader
Now! (Anticheating version 1)
Back to the Future III
Back to the future
Obtain the Bitcoin address associated to a given private key
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