← All problemsSign in

Common Neighbors

You are given an array of $N$ Integers. You have to "Print the largest contiguous subarray of the list of integers with a common factor ( except $1$) " Note: Contiguous means elements sharing a common border i.e. adjacent elements hence the subarray should be continuous. ###Input - The first line of the input consists of a single integer $N$ denoting the number of integers - You will be given

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