I'm using go1.16.4 in windows 10.
when I try:
go run main.go < input.txt
im getting
0
5
0
4
but according to the video, it should be:
5
4
11
33
im using the following GCD function:
for {
if b == 0 {
return a
}
a, b = b, a%b
}
all the test cases passed for that GCD function,
can someone explain to me, what is going on?
thanks,