All problems
Train/Eval Seed Separation
Problem
Return the sorted list of seeds that appear in both the training and evaluation seed sets, exposing accidental reuse. Disjoint sets return [].
Hint
Reusing a training seed at evaluation time silently inflates scores.
Test cases
case 1
in: [[1,2,3],[4,5]]
expected: []
case 2
in: [[1,2,3],[3,1,7]]
expected: [1,3]
case 3
in: [[],[1,2]]
expected: []
Starter codePython
def seed_overlap(train_seeds, eval_seeds):
# Your code here
pass3 test cases · run your code against them in the editor