Which edge case matters for this problem?
Practice this question from Modular Inverse - Extended Euclid Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for this problem?
Option A — Correct answer
If gcd(a,m) is not 1, return -1.
Option B
Whether intervals overlap
Option C
Whether a linked list has a cycle
Option D
Whether a queue is empty
Explanation
If gcd(a,m) is not 1, return -1.