Squares
CodeChefOpen on judge ↗
You are given a N × N square matrix consisting of ' . ' only . For example , a 3 × 3 matrix means : . . . . . . . . . Similarly , a 4 × 4 matrix means: . . . . . . . . . . . . . . . . Your task is to find the maximum number of squares which can be made using ' . ' as the vertices . The sides of the squares must be parallel to the Cartesian X and Y axes . Input - The first line contains an in
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start