Posting List Intersection

Easy · Solved in Python · Machine learning coding practice

Problem

Return a sorted Python list of unique IDs shared by every list in postings, a nonempty collection of sorted integer lists.

Input lists may contain duplicates.

Topics: inverted-index, set-operations, information-retrieval

The full statement, worked examples, hints and the test suite are available once you sign in. You can then solve Posting List Intersection in the browser and run it against the tests.

More problems