← All problemsSign in

RS and JS

RS loves a girl in WBUT . Recently she came to know about his love for her . Now she gives RS a problem and says that she will marry him only if he is able to solve the problem . She gives RS an array of integers and asks him to find the least common multiple of the numbers at index L and R (1 based indexing). As RS is busy preparing for networking viva , he asks you to solve the problem for him .

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