Given an array write a program to find maximum gcd among all subarray of size>=2 of the given array
Answers
Answered by
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
History,
5 months ago
Math,
5 months ago
Math,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
English,
1 year ago