We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- All Contests
- HourRank 29
- Array Partition
- Discussions
Array Partition
Array Partition
Sort by
recency
|
22 Discussions
|
Please Login in order to post a comment
I am not getting the problem statement. can anyone explain, please.
I am getting time out in the last two test cases. I have used DisjointSet and Modular Exponentiation and Euler's Algorithm to solve the problem. My code-
Am I missing something?
"Note that {1, 3} will always be placed together and {1, 2} will also be placed together always. As {1} is common, therefore {1, 2, 3} will always be placed together otherwise gcd wont be 1." I don't understand this clearly ? {1,2} isn't placed together in the previous statement.
what means verdict: point exception?