String Paths
CodeChefOpen on judge ↗
$Striver$ wants to strive hard in order to reach his goals, hence asks his mentor to give him a question for which he has to strive hard. The mentor gives $Striver$ a $N$ X $N$ matrix consisting of lowercase characters ($'a'$ to $'z'$) and $Q$ queries. Every query consists of $X$ and $Y$. From any position in the matrix, one can either move towards the right or towards down. He asks striver to w
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