Master Data Structures & Algorithms For FREE at AlgoMap.io!
@docsmate2umassКүн бұрын
simple and clear explanation makes this video more valuable .
@Za3DoRzX23 күн бұрын
I love your explanations Greg, keep up the good work.
@BigStupidTech5 ай бұрын
Spitting straight value. Thanks for these
@GregHogg5 ай бұрын
It's what I do
@christianjt70185 ай бұрын
Great explanation, thanks a lot for sharing
@nurbekmalikov34672 ай бұрын
for space comp just create one iteration index like => iterator = len(num) -1 and every greater value puts original array which is num and iterator-- this is O(1) space!
@leandrormor5 ай бұрын
Thanks, your content is brilliant. I hope you'll touch monotonic stack, double heap, prefix sum...
@majestif5 ай бұрын
Many thanks for a great explanation!
@GregHogg5 ай бұрын
You're very welcome 🥰
@helloworldcsofficialАй бұрын
Thanks! Will there be more easy and medium problems where we can I apply the two pointer (indices) technique?
@MrTo12234 күн бұрын
Hi greg can I just change th3 conditions to append the smallest of the squares of the left and right pointers?
@izzya12823 ай бұрын
Perfectooo amigo
@ryanlalliss59775 ай бұрын
Sorry if this is stupid but why not use the insert method instead of append rather than reverse the array at the end?
@GregHogg5 ай бұрын
That will be inefficient because inserting at beginning is slow
@timkvernen48524 ай бұрын
It's not accurate to say that the biggest values are on the outside. The second biggest value could be the second or second-to-last element. It would be accurate to say that the biggest value will always be on the outside.
@abodora5325 ай бұрын
hmm, but what if they weren't in non decreasing order