bah, my lack of knowledge of probability fails me again
A very interesting probability problem applicable across a lot of areas underlies the solution. It isn't obvious at first glance. The solution is fairly short, but it takes a lot of thought to get it. I can't wait to see the length 14 solution!
ironic solution ftw!
I should have known! :) Next problem is, how many times can you expect to submit that solution! :)
OK. You've gamed the solution. The author shouldn't have to beef up the test suite to prevent this sort of solution.
Back to basics 12 - Input Arguments
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Back to basics 25 - Valid variable names
Find the maximum number of decimal places in a set of numbers
matrix of natural number
Scoring for oriented dominoes
Given a window, how many subsets of a vector sum positive
Project Euler: Problem 8, Find largest product in a large string of numbers
Make a random, non-repeating vector.
Steal, Share, or Catch: Tournament of Champions
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