in reply to Re^2: Faster (but uglier) PWC 350-2 solutions
in thread Faster (but uglier) PWC 350-2 solutions

I don't know what you mean by false positives? The test is how many numbers in the range are part of at least count pairs. Having both ends of a pair in the range just means both numbers count. And each number only counts once. Can you explain what you think is ambiguous? (Agreed that PWC often is; usually the examples clarify, but not always.)
  • Comment on Re^3: Faster (but uglier) PWC 350-2 solutions

Replies are listed 'Best First'.
Re^4: Faster (but uglier) PWC 350-2 solutions
by Anonymous Monk on Dec 10, 2025 at 10:11 UTC
    The test is how many numbers in the range are part of at least count pairs.

    Didn't they ask for "different pairs"? 1782 and 7128 belong to the same pair. OTOH, "1428570 belongs to 5 different shuffle pairs" -- yeah, how else, what's the alternative? What does that even mean to "belong to several pairs which are not different"? Replicate any as much as I please? Perhaps your interpretation is correct, if only by Occam's razor, just remove one meaningless word globally in the task. Sorry, never mind.