Interview Query

Greatest Common Denominator

0
Have you seen this question before?

Given a list of integers, write a function gcdgcd to find the greatest common denominator between them.

Example:

Input:

int_list = [8, 16, 24]

Output:

def gcd(int_list) -> 8
Next question: Same Characters
.....
Python 3.9.6
Loading editor
Use Shift + Enter to run code