DEV Community

loading...

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

vhiwase profile image Vaibhav Hiwase ・1 min read

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…

Discussion (0)

Forem Open with the Forem app