Find an array element such that all elements are divisible by it | geeksforgeeks
Answers
Answered by
0
Find an array element such that all elements are divisible by it. Given an array of numbers, find the number among them such that all numbers are divisible by it. If not possible print -1. ... Input : arr = {25, 20, 5, 10, 100} Output : 5 Explanation : 5 is an array element which divides all numbers.
by _Gopal siba paul.
please follow me✌✌✌✌
Similar questions