Task: Find Intersection of Two Nested Lists
Task: Find Intersection of Two Nested Lists: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python program that finds the intersection between a flat list and a nested list (list of lists). The program should compute the intersection of the flat list with each sublist in the…
The task
You need to write a Python program that finds the intersection between a flat list and a nested list (list of lists). The program should compute the intersection of the flat list with each sublist in the nested list, preserving the nested structure in the output.
Part of PrimeIntellect/Terminal-Lego-15k.