« first day (1138 days earlier)      last day (1720 days later) » 

2:29 PM
https://www.interviewbit.com/problems/diffk-ii/

https://pastebin.com/5br12S99


mp[A[i]+B]!=0 ,why we need this condition ,why mp[A[i]-b]!=0 not enough
I am solving above problem
can anybody look in to this
thanks
 
2:57 PM
@sunil because the question doesn't say i<j or i>j
 
 
3 hours later…
5:43 PM
@PeterT yes i got it earlier ,was simple ,thanks for reply :)
 

« first day (1138 days earlier)      last day (1720 days later) »