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.
This is horribly worded. The question specifies that "Two jokes (x1, y1) and (x2, y2) differ if they don't contain the same events."
This seems to imply that if (12, 31) was in the list three times, then two of them could count as a joke, but no more times than that. But, as it turns out, all three possible pairs of those identical events should count as three separate jokes. This is not clear at all from the statement, as the jokes ((12, 31), (12, 31)) and ((12, 31), (12, 31)) contain the same events.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jim and the Jokes
You are viewing a single comment's thread. Return to all comments →
This is horribly worded. The question specifies that "Two jokes (x1, y1) and (x2, y2) differ if they don't contain the same events."
This seems to imply that if (12, 31) was in the list three times, then two of them could count as a joke, but no more times than that. But, as it turns out, all three possible pairs of those identical events should count as three separate jokes. This is not clear at all from the statement, as the jokes ((12, 31), (12, 31)) and ((12, 31), (12, 31)) contain the same events.