The description does not match the example: The point 3 should be "3. On the # trip down the alley, start with door # [and process every #-th door]".
I agree with Jan - the description is not clear. The final instruction should be "return the list of open door #'s", presumably.
If the description was clearer, I'd give this problem a "like", because a good solution depends on a good analysis of the problem more than on just neat coding.
Sorry about the confusion. I tried to clarify the problem description.
Nice problem! The explicit solution was very surprising to me once I found it.
Classic problem--unfortunate that the test suite reveals the punchline.
Yes I initially thought y = sum(open doors)
good problem, easy solution once realising how to solve
easy if to think a bit
though I did not understand the question...
the problem are not clear, could you explain me?
Very nice solution without for loop
Problem isn't robust to direction of vector
Nice explanation. I just derivated the formula from the solution ;-)
Thanks for the explanation.
Simple equation: Annual salary
03 - Matrix Variables 6
Beginner's Problem - Squaring
Solve a System of Linear Equations
Finding Perfect Squares
Get the area codes from a list of phone numbers
Make the vector [1 2 3 4 5 6 7 8 9 10]
Sort a list of complex numbers based on far they are from the origin.
Add two numbers
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