Problem 1388. Numbered lottery balls into cells
Solution Stats
Problem Comments
-
2 Comments
Paul Berglund
on 29 Mar 2013
I think the unit tests are wrong. In particular lottery(12,11)=66 not 6.
James
on 29 Mar 2013
Great catch! That one is now fixed. That happened when I was copying the results of the array of values from 1-12 for lottery(12,x). I guess the values for 11 and 12 were on the next line, and I accidentally deleted one of the 6s in 66 for lottery(12,11). I'll double check the rest of them when I get back on my machine that has MATLAB on it. I'm rescoring now.
Solution Comments
Show commentsProblem Recent Solvers37
Suggested Problems
-
Swap the first and last columns
18241 Solvers
-
3090 Solvers
-
Read a column of numbers and interpolate missing data
2071 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1893 Solvers
-
986 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!