Question DSA-MATH-0061
HardWhat is the output of this code?
def crt(rems, mods):
x, M = 0, 1
for r, m in zip(rems, mods):
while x % m != r:
x += M
M *= m
return x
print(crt([2, 3, 2], [3, 5, 7]))
- A.
8
- B.
53
- C.
23
- D.
105
Sign up free to see the answer and a step-by-step explanation.