Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 197 Bytes

1.md

File metadata and controls

21 lines (14 loc) · 197 Bytes

1

var a, b int

for i := 0; i < N; i++ {
  a += a % M
}

for j := 0; j < M; j++ {
  b += b % N
}

Time Complexity

YOUR ANSWER GOES HERE

Space complexity

YOUR ANSWER GOES HERE