Master Data Structures & Algorithms For FREE at AlgoMap.io!
@scubahick4 ай бұрын
what drawing software do you use?
@malakgghАй бұрын
miro whiteboard
@kishc4509Ай бұрын
Great work! Wondering why we can't just initiate merged as merged = [intervals[0]] I feel like that's more readable and that way we don't need the "if not merged" check each time. Thanks!
@helloworldcsofficial2 ай бұрын
thanks! Is intervals.sort() not sufficent? and why not?
@JollezАй бұрын
I believe because you need to sort based on the 0 index of each pair so you have to declare the comparator
@elijahachiri9 күн бұрын
I hated this problem. I was trying to figure out the solution without sorting and ended up with too much logic that didn’t suit all edge cases. I want to try it again without watching the rest of the video but I’ve already burned too much time
@hamids455020 күн бұрын
why merge[-1]
@Powaup2 ай бұрын
I just couldnt figure out the need for the .max but examples like this make it necessary: intervals = [[1, 5], [2, 6], [3, 4]]
@ImRafaelPL6 ай бұрын
why is it your least favourite?
@robertedwards44013 ай бұрын
It's my least because the test cases they give only tell 1/10th of the story.
@Powaup2 ай бұрын
@@robertedwards4401 they really should just give us an example that is unordered
@dhananjayraina2478Ай бұрын
least favourite for a reason
@GarouNguyen5 ай бұрын
bro merged[-1][1] not work
@AlgorithmDoctorАй бұрын
paste your code here, we troubleshoot together
@GarouNguyenАй бұрын
@ bro do you have experience with api sql orm? I have a project using raw js and html css want to make ot work for comment part and login user