Interview Query

Greatest Common Denominator

Start Timer

0:00:00

Upvote
5
Downvote
Save question
Mark as completed
View comments (14)
Next question

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

Example:

Input:

int_list = [8, 16, 24]

Output:

def gcd(int_list) -> 8
.
.
.
.
.


Comments

Loading comments