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
Science,
6 months ago
Art,
6 months ago
English,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
English,
1 year ago