https://ide.codingblocks.com/#/s/29786
Question is modulo sum in Number Theory Basics -> What is wrong?
https://ide.codingblocks.com/#/s/29786
Question is modulo sum in Number Theory Basics -> What is wrong?
please provide the Problem link??
You are checking whether any cumalative sum with frequency>1 exists or not. But that does not guarantees an answer.
For eg:
INPUT:
4 5
1 7 6 8
EXPECTED OUTPUT:
YES
OUTPUT:
NO