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.
Damn bhai, aaj hi cmnt kia tha 😭😭
Aaj hi comeback ❤️❤️❤️
❤❤ happy to see u back
Welcome Back Bhaiya
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
Glad to see u back posting amazing content.
Yhaeee broo is back with full energy❤ great to u see once again broo ❤
Great to see u again ❤️
So happy to see you my motivation :))
Hoii, bhai you literally came back to save us !!!!!!!!!!!! Thanks a lot. Hope you're doing good. Please continue this
Welcome back bhaiyaa❤❤
Happy to see you back ❤
❤️❤️🫂
GOAT is back 🔥🔥🔥🔥
The king is back
Bhai ka comeback ho gaya 💪💪
🤩🤩🤩Aryaaaann is baaackk
Finnaly Bhaiya is back 😊
happy to see ya back :)
OMG finally you back
🫂🤌🏻🫡
Finally , Our saviour is came back
welcome back dude.
Lord is back😊
Og legend is back❤
🙇♂️🙇♂️
return of the king
The GOAT is back
bro i was just thinking about you.....😍😍😍😍😍😍😍😍
While....?
@its_adesh solving the 3rd problem
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.
Bro is back 🗿
Aryan Bhai , Missed you a lot and your solutions videos 😭
Grand welcome ji
Nice explanation bro . Hey aryan can u give some problem for practice on line sweep.
Wellcome back XD
Wake up babe, Aryan's new video is out
Babe, look aryan's back
ab maja aaega 💪
Yes sir 🙌🏻🙇♂️
bhaiya can you do a series of line sweep videos?
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
Finally......
❤️❤️
finally
bhaiya 4th bhi smjhana please
good morning
This ques was so tough wtf?
Bhai kaha tha tu
0:02 bro USA chala gaya lagta hai, tabhi video morning me aa rahi. 🙂
😂😂🌚
Woohooo
Kaha gye the bhai 😡
Java 😭
Hiiiiiii
hindi mei bhok toh samaj bhi ayee