I did another approach. I first sorted array and then used sliding window. For every element in sorted array I checked leftmost value I can achieve (nums[i]-k) and the righmost value. Then took the max size window I had as my answer and it worked.
Isn't the TC for this solution N^2? I noticed that you are using a nested loop for finding the overlappingCount. For every point in sortedPoints you are traversing through the eventList which is of the same size.
Finally, Lord Aryan is back 🫡
🙇♂️🙇♂️
DUDE YOU HAVE NO IDEA HOW MUCH WE WAITED!! really there is no other creator that can REPLACE you... keep making such videos daily if possible.
I did another approach. I first sorted array and then used sliding window. For every element in sorted array I checked leftmost value I can achieve (nums[i]-k) and the righmost value. Then took the max size window I had as my answer and it worked.
@asterin1138 bro can u share ur code pls ?
can you share the code
Damn bhai, aaj hi cmnt kia tha 😭😭
Aaj hi comeback ❤️❤️❤️
Hoii, bhai you literally came back to save us !!!!!!!!!!!! Thanks a lot. Hope you're doing good. Please continue this
Yhaeee broo is back with full energy❤ great to u see once again broo ❤
Isn't the TC for this solution N^2? I noticed that you are using a nested loop for finding the overlappingCount. For every point in sortedPoints you are traversing through the eventList which is of the same size.
❤❤ happy to see u back
Aryan Bhai , Missed you a lot and your solutions videos 😭
So happy to see you my motivation :))
Glad to see u back posting amazing content.
GOAT is back 🔥🔥🔥🔥
Great to see u again ❤️
Welcome Back Bhaiya
Finally , Our saviour is came back
Happy to see you back ❤
❤️❤️🫂
Nice explanation bro . Hey aryan can u give some problem for practice on line sweep.
happy to see ya back :)
Bhai ka comeback ho gaya 💪💪
Welcome back bhaiyaa❤❤
The GOAT is back
return of the king
Bro is back 🗿
OMG finally you back
🫂🤌🏻🫡
Lord is back😊
Finnaly Bhaiya is back 😊
welcome back dude.
Grand welcome ji
Wake up babe, Aryan's new video is out
bhaiya can you do a series of line sweep videos?
Babe, look aryan's back
🤩🤩🤩Aryaaaann is baaackk
bro i was just thinking about you.....😍😍😍😍😍😍😍😍
While....?
@its_adesh solving the 3rd problem
Og legend is back❤
🙇♂️🙇♂️
Wellcome back XD
bhaiya is back 😢❤....bhaiya r there any more crash courses coming soon in near future..they r lit gold 🔥
Yes sir 🙇♂️🤌🏻
@@ARYANMITTAL finally !!!... can I get an idea what's cooking behind ❤
All hail the lord
ab maja aaega 💪
Yes sir 🙌🏻🙇♂️
bhaiya 4th bhi smjhana please
good morning
finally
Finally......
❤️❤️
This ques was so tough wtf?
0:02 bro USA chala gaya lagta hai, tabhi video morning me aa rahi. 🙂
😂😂🌚
Woohooo
Bhai kaha tha tu
Kaha gye the bhai 😡
Java 😭
Hiiiiiii
hindi mei bhok toh samaj bhi ayee