Problem 1174. Wheat on a chessboard pt 2
33.6% Correct | 66.4% Incorrect
Last Solution submitted on Mar 15, 2023
Show 3 older comments
David on 7 Jan 2013
consider using isequalwithequalnans (isequaln) against NaN instead of isequal against 'NaN' in test 7.
Jean-Marie Sainthillier on 12 Mar 2013
Asif Newaz on 12 Jan 2020
how to place negative amount of 'wheat' on a chessboard?
the prob is gd but the test suites are unnecessarily jumbled up.
Dyuman Joshi on 10 Apr 2021
Removed the cases with negative quantities. Everyone should be able to solve the problem now.
ChrisR on 5 May 2021
Is test 4 incorrect?
Dyuman Joshi on 5 May 2021
@ChrisR, Yes it was incorrect, and has been corrected.
Solution CommentsShow comments
Problem Recent Solvers104
Create a cell array out of a struct
Calculate the area of a triangle between three points
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
More from this Author4
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!