[Solved] How to efficiently compare two maps?
Since your files are sorted, you don’t have to store them or even parse them outside of lines. You can keep advancing in the sequence with the lesser current element: def count_equal(a, b): “”” Counts the number of values that are equal in two sorted iterables. >>> odds = [1, 3, 5, 7, 9, 11, … Read more