Given an integer n representing the dimensions of an n x n chessboard, calculate the total number of squares of all sizes (1x1, 2x2, ..., nxn) contained within the board.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.