Chinese Remainder Theorem

Learn about the Chinese Remainder theorem that is very useful in solving coding interview problems.

We'll cover the following...

Problem introduction

The Chinese Remainder theorem is used to solve problems typical of the form “Find a number which when divided by 2 leaves remainder 1, when divided by 3 leaves remainder 2, and when divided by 7 leaves remainder 5”. These problems can be reformulated into a system of linear congruence and can then be solved using the Chinese ...