Math, asked by Kanandpatel3324, 1 year ago

Find an array element such that all elements are divisible by it | geeksforgeeks

Answers

Answered by gopalsibapaul01
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