ALANs DINNER
CodeChefOpen on judge ↗
$Alan$ and his teammates entered into war. Alan is assigned with a task to give a headshot to $Shroud$ : $The$ $Lethal$. In order to get a $glorious$ $victory$ he has to solve the task. Chef gave you names of $N$ zones $Z_i,$ $1<=i<=N$ and he want you to find the number of pair of Zones $Z_i,Z_j$ such that $i < j$, whose number of common distinct characters are $atleast$ $2$. Help $Alan$ to
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