Computer Science, asked by Yovita8590, 10 months ago

Given an array write a program to find maximum gcd among all subarray of size>=2 of the given array

Answers

Answered by Anonymous
0

Input : arr[] : { 1 2 3 4 5 }

Output : 2

Explanation : Pair {2, 4} has GCD 2 which is highest. Other pairs have a GCD of 1.

Input : arr[] : { 2 3 4 8 8 11 12 }

Output : 8

Explanation : Pair {8, 8} has GCD 8 which is

PLEASE MAKE ME AS A BRAINLIST ANSWER

Similar questions