diff --git a/chineseremaindertheorem.cpp b/chineseremaindertheorem.cpp new file mode 100644 index 0000000..bfcd5c6 --- /dev/null +++ b/chineseremaindertheorem.cpp @@ -0,0 +1,30 @@ +#include +using namespace std; + +int findMinX(int num[], int rem[], int k) +{ + int x = 1; + while (true) + { + int j; + for (j=0; j