• + 0 comments

    for whoever taking a look

    fyi fastest (time complexity) solution is O(m+n)
    takes O(r) in space (r being max range for the shots, here 10^5)

    no sort (O(nlogn+mlogm)) needed
    no search (O(mlogn) or O(nlogm)) needed