← SAP questions

Maximum number of squares on a chessboard

Filed under SAP

Given an $N \times N$ grid representing a chessboard, calculate the total number of squares of all possible sizes (from $1 \times 1$ up to $N \times N$) contained within the board. By default, a…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related SAP questions

Collected from public candidate posts and coding forums. Updated Nov 2026.