← All problemsSign in

BILATERAL SEGMENTS

Sick of his captivity during the quarantine times, Debrup decided to ring up his best friend Kushagra and challenge his programming skills. Being an array freak, it wasn't long before he came up with a delicious problem on arrays. The task is simple(or so he thought). Kushagra would be given two independent arrays $A$ and $B$, of equal or unequal sizes $n$ and $m$. Let's define a *Bi

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