← All problemsSign in

CHEF MAKES GOOD PAIRS

Chef is playing a game of square and asks you to find sum of total number of pairs according to below given information. Given a character square matrix of $NXN$ dimensions. Each cell of the square matrix has one of the three character values $A,B,C$ corresponding to one of the three colours . A pair of cells of sqaure matrix is called $Good Pair$ if only that pair of cells is removed from the

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start