Problem 1174. Wheat on a chessboard pt 2
Solution Stats
Problem Comments
-
6 Comments
consider using isequalwithequalnans (isequaln) against NaN instead of isequal against 'NaN' in test 7.
n=-1 ???
how to place negative amount of 'wheat' on a chessboard?
the prob is gd but the test suites are unnecessarily jumbled up.
Removed the cases with negative quantities. Everyone should be able to solve the problem now.
Is test 4 incorrect?
@ChrisR, Yes it was incorrect, and has been corrected.
Solution Comments
Show commentsProblem Recent Solvers116
Suggested Problems
-
570 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1079 Solvers
-
Back to basics 11 - Max Integer
776 Solvers
-
Sum the entries of each column of a matrix which satisfy a logical condition.
158 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
216 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!