3161. Block Placement Queries (Leetcode Hard)
1:09:42
Пікірлер
@astrospace66
@astrospace66 4 сағат бұрын
Big fann
@Tr3ysk1
@Tr3ysk1 6 сағат бұрын
Lol I just merged the intervals
@cuber-zx9ho
@cuber-zx9ho 9 сағат бұрын
Understandable and concise explanation/implementation. Subbed
@rohitkumarpilania94
@rohitkumarpilania94 12 сағат бұрын
the most voted solution is of sliding window which is really neat
@chintaphaniramavaibhav3714
@chintaphaniramavaibhav3714 16 сағат бұрын
hey could youu please make a video how to deal with questions based on lexicographical no ones ever made any please i am feeling frustated about not being able to solve those based questions
@juanmacias5922
@juanmacias5922 17 сағат бұрын
I watch because Larry is a fitness influencer. ;)
@user-vs3jn4xi4x
@user-vs3jn4xi4x 16 сағат бұрын
true lol
@Algorithmist
@Algorithmist 17 сағат бұрын
Are you anti-anything?
@dr.mikelitoris
@dr.mikelitoris 16 сағат бұрын
I’m anti-racism
@tommyshelby6277
@tommyshelby6277 2 сағат бұрын
anti-leetcode(i didn't sleep for past 16 hours)
@Algorithmist
@Algorithmist 17 сағат бұрын
Did you make enough appends?
@ayush-naithani
@ayush-naithani 17 сағат бұрын
yep!!
@kocot.
@kocot. 23 сағат бұрын
if you get confused yourself, you can be sure it's not any less confusing for the viewers :D I'd recommend to draw a bit, it would help both sides I'd believe, and please, do edit such parts, it would be a much better 10min than it is 18min one, anyway, appreciated :)
@user-ug9qz5xp5k
@user-ug9qz5xp5k Күн бұрын
i also thought you were wearing an OnlyFans shirt
@Algorithmist
@Algorithmist 17 сағат бұрын
I don't know what that means but
@user-ug9qz5xp5k
@user-ug9qz5xp5k Күн бұрын
the kids do indeed call it drip. your fit was clean and the vibes checked out
@nagmatnazarov1759
@nagmatnazarov1759 Күн бұрын
Thanks for sharing easy to understandable code instead of fancy code.
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
i am not able to understand it quite.
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
Also there was a longer delay in my region i was able to start the contest after 20 mins since i thought the contest was cancelled.
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
I think i didn't get this :( what i did was to add all the non start characters in a heap that first sort the elements based on the lexicographical order and than if they are same character we just give priority to the right most ones so each time when i encounter * i just pop from this heap and add to the miss idx. but say if the star is at end then it would take nlogn heap operations (logn for each addition ) and then only then i pop . SO my code gives O(nlogn) which works given the constraints but i want to learn the optimised approach. Larry can you do a dry run and explain.
@Algorithmist
@Algorithmist 17 сағат бұрын
it is easy to misread!
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
wow it was simple only! I could have solved 3 today! Man its frustrating.
@hiteshpatwal9688
@hiteshpatwal9688 Күн бұрын
Do yo do codeforces??
@Algorithmist
@Algorithmist 17 сағат бұрын
not currently!
@rohitkumarpilania94
@rohitkumarpilania94 Күн бұрын
It's not funky, actually it's exactly what I did too
@Tr3ysk1
@Tr3ysk1 6 сағат бұрын
Yeah I had a similar solution as well
@Algorithmist
@Algorithmist Күн бұрын
Did you get bit by this problem?
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
yes 🤒
@Algorithmist
@Algorithmist Күн бұрын
Are you seeing stars after this problem?
@Algorithmist
@Algorithmist Күн бұрын
Do you actually have days without meetings?
@Algorithmist
@Algorithmist Күн бұрын
How many things are chairs?
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
what does that mean now 😂 many things are chairs but they are all called chairs so maybe there are chair things that ... Nah i will lose it lol
@rohitkumarpilania94
@rohitkumarpilania94 Күн бұрын
ṣeeing larry on full screen is an achievement
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
congrats on hoodie 🙌
@user-vs3jn4xi4x
@user-vs3jn4xi4x Күн бұрын
hey hey larry😊
@chrischika7026
@chrischika7026 Күн бұрын
nice shows your dedication.
@juanmacias5922
@juanmacias5922 Күн бұрын
I've been eyeing the shirt, but I'll have to start try doing some contests, or wait 400 more days HA
@Algorithmist
@Algorithmist Күн бұрын
Did your string get reversed?
@MineNandhu-gz8rt
@MineNandhu-gz8rt 2 күн бұрын
Larry what job are you doing.??
@armaanshoaib
@armaanshoaib 2 күн бұрын
Bro made a 3 n a half minute video and he talked about random things for 2 minutes😂🔥
@chrischika7026
@chrischika7026 2 күн бұрын
how old are you
@Algorithmist
@Algorithmist Күн бұрын
old
@surajsuryawanshi444
@surajsuryawanshi444 2 күн бұрын
3:18 "...unless you happen to be an Indian.." not sure how I feel about it, proud or disheartened 😅
@Algorithmist
@Algorithmist Күн бұрын
it's tough out there
@madalakhyatinvivek4683
@madalakhyatinvivek4683 2 күн бұрын
Love from India
@madalakhyatinvivek4683
@madalakhyatinvivek4683 2 күн бұрын
Hello sir, Can you make a playlist of dsa topicwise problems of whatever you had solved till now. So that it would be structured.
@Algorithmist
@Algorithmist 2 күн бұрын
Were you able to guess the number?
@Algorithmist
@Algorithmist 2 күн бұрын
Did you find all the common elements?
@Algorithmist
@Algorithmist 2 күн бұрын
What is the score of your string?
@Algorithmist
@Algorithmist 2 күн бұрын
Were you able to remain self-contained?
@vanchark
@vanchark 2 күн бұрын
Man, that's a gorgeous solution. I don't think there's any tricks at all. If you know the idea behind xor'ing all numbers to cancel pairs out, you just need to extract the pair from the result. And if you can interpret what each bit in the result means (in terms of a and b's bits at that position), you can find one of the numbers, which lets you find both of the numbers.
@RajatSingh-xu6to
@RajatSingh-xu6to 3 күн бұрын
Larry would you tell me about your daily routine excluding coding 😄
@Algorithmist
@Algorithmist Күн бұрын
a lot of running, a lot of gym
@shashwatsingh5637
@shashwatsingh5637 3 күн бұрын
If you were to recommend someone to learn dp and other concepts , what resources will u suggest?
@Algorithmist
@Algorithmist Күн бұрын
practice on Leetcode
@user-fv2up7tz9t
@user-fv2up7tz9t 3 күн бұрын
Thanks for the explanation of the most optimized solution via combinatory. For those who have been stretching head on why k-=1, that is because you start at floor 1.
@codenocode
@codenocode 3 күн бұрын
I couldn't get this one. I had to look it up :( Either ways I agree that understanding is not problem solving. You can agree with me on each step but at the same time you still wouldn't be able to come up with each step yourself if you went back to the start.
@Algorithmist
@Algorithmist 3 күн бұрын
Did you get around all the indexing?
@Algorithmist
@Algorithmist 3 күн бұрын
Were you ale to get a single number?
@technicalgamer2565
@technicalgamer2565 3 күн бұрын
was able to think using hashmap or set but was not able to think linear solution 😅
@chrischika7026
@chrischika7026 3 күн бұрын
congrats on 1k
@Algorithmist
@Algorithmist 3 күн бұрын
thanks, but this was a long time ago
@beingriptide
@beingriptide 4 күн бұрын
how do you get that good in programming? i need some tips on that as well
@Algorithmist
@Algorithmist Күн бұрын
a lot of practice
@AbdulRehmanKhan.
@AbdulRehmanKhan. 4 күн бұрын
bro , great explanation. pls turn on dark mode.
@user-ug9qz5xp5k
@user-ug9qz5xp5k 4 күн бұрын
what a hard problem...
@Algorithmist
@Algorithmist 4 күн бұрын
Did you get around making the strings smaller?