← All problemsSign in

Patrix

Patrix - Number of Patterns possible for a given matrix. Chef got a supercool smartphone recently. It has an option for Pattern lock. Now Chef wants to find the number of patterns possible connecting P points in a given Matrix of M rows and N columns. Assume that any number of dots can be connected to arrive at a valid pattern i.e. even a single dot combination is perfectly valid. Input The fi

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