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.
Jim and the Jokes
Jim and the Jokes
Sort by
recency
|
42 Discussions
|
Please Login in order to post a comment
if jim is out of jokes just to entertain his customers, tell jim that maybe he can sing or dance just to entertain his customer .. the real problem is how to entertain the customer .
100000
12 31
12 31
12 31
12 31
12 31
12 31 and so on for this test case how is the answer 499950000???
12 31
12 31
Yet another one-liner:
Java8 codes
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.