Link: HUNGALGO - Editorial
I understand the logic. I unable to understand the implementation of 2nd loop.
Code Link: QRU6CU - Online C++0x Compiler & Debugging Tool - Ideone.com
for(int i = 0; i < N; i++) {
ok &= *min_element(a[i], a[i] + N) == 0 && *min_element(b[i], b[i] + N) == 0;
}
Please explain the loop.