Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Efficient data structure for Intersection C++

$
0
0

Q1. What would be the time complexity to find intersection of two SORTED ranges or arrays? Which data structure or STL container would give the best time complexity?

Q2. Does O(n2 * log(c)) pass in 2 seconds time limit? n = 10^5


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>