DEV Community

Vaibhav Hiwase
Vaibhav Hiwase

Posted on

Answer: What is the most efficient way of getting the intersection of k sorted arrays?

Some of the above methods are not covering the examples when there are duplicates in every subset of the list. The Below code implements this intersection and it will be more efficient if there are lots of duplicates in the subset of the list :) If not sure about duplicates…

Top comments (0)