If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successive square after had y times the amount of grains as the square before. How many grains of wheat would be on the chessboard at the finish?
Assume the chess board is n by n squares.
consider using isequalwithequalnans (isequaln) against NaN instead of isequal against 'NaN' in test 7.
n=-1 ???
This should also be slimmed down somehow.
Someone can easily beat this lead.
17162 Solvers
Sort a list of complex numbers based on far they are from the origin.
3794 Solvers
Find the alphabetic word product
1999 Solvers
4112 Solvers
167 Solvers