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.
This should also be slimmed down somehow.
Someone can easily beat this lead.
18003 Solvers
1641 Solvers
Unique values without using UNIQUE function
181 Solvers
502 Solvers
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!