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
-
1 Comment
This should also be slimmed down somehow.
-
1 Comment
Someone can easily beat this lead.
Problem Recent Solvers94
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
916 Solvers
-
Back to basics 4 - Search Path
341 Solvers
-
Back to basics 22 - Rotate a matrix
827 Solvers
-
Relative ratio of "1" in binary number
801 Solvers
-
562 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!