i see the way you arranged the companies to almost spell out faapng! 😂😂
@amythistfire504219 минут бұрын
FAANG is the name of the 5 tech giants. He didn't arrange them in a special way
@barmaliniСағат бұрын
this oneliner is not my solutiion, but works like a charm: return matrix and [*matrix.pop(0)] + self.spiralOrder([*zip(*matrix)][::-1])
@GregHoggСағат бұрын
Master dynamic programming and all data structures and algorithms for FREE at AlgoMap.io :)
@mrinalghosh7060Сағат бұрын
1st
@keifer78132 сағат бұрын
Nicely explained
@JoeTan-nq4fq2 сағат бұрын
Use Counter class for shortcut. Then find min of single letters ('b', 'a', 'n') and double letters ('l', 'o'). Return min of single, double //2 if single and double is not zero, else return zero.
@PriyanshDhakad-f4c4 сағат бұрын
Java
@sonhoang89864 сағат бұрын
Thank you for your explanation. I love how you explain the theory, but I expected more about the coding section. I hope something from scratch to understand the theory. Anw, thank you so much
@Katlex_threejs4 сағат бұрын
Love u content
@zakie_chan04235 сағат бұрын
Not as bad as u think is a massive understatement
@RefaatIbrahimXIT5 сағат бұрын
Hi Greg
@RefaatIbrahimXIT5 сағат бұрын
I wanna get it but unfortunately I can not afford it. Any possible solutions Regards
@imnottellingyoumyname30507 сағат бұрын
Yeah but why does it matter
@MuhamadMuhamad-de4ot8 сағат бұрын
The interpreter cannot find the definition for the class Solution when it is being instantiated. Smart but you did it deliberately for the content. Nice touch
@shivamgoyal79611 сағат бұрын
Memoization or tabulation
@davidgillies62013 сағат бұрын
A tree is a graph such that removal of any of its edges leaves it disconnected. Equivalently, it is an acyclic graph. Trees do not need to be rooted.
@sparkspark-tn6sc17 сағат бұрын
What about java springboot?
@kidusbk302118 сағат бұрын
LRU Cache, hold my beer.
@benbrook46913 сағат бұрын
why lru cache instead of cache
@tauicsicsics19 сағат бұрын
great video but please by a tablet and a pen, the writing is quite hard to understand, thanks
@joneskiller819 сағат бұрын
I don't understand; when you arrange the array in a heap, you are already iterating over the array once. Why can't I just track two max's and the second highest max is the solution?
@broken_dy262919 сағат бұрын
I see, this resembles bottom-up approach, great explanation!
@amjadalthabteh468020 сағат бұрын
Bros actually the GOAT! explains things in a different way fr
@redfinance340320 сағат бұрын
BFS: Then push onto the queue, the node and time. For each neighbour add it to the queue with minute+1 and take the max time for any branch (since they are all occurring simulatenously)
@nicosmonaute418320 сағат бұрын
Use lru cache bro
@Freddythedog-e8c22 сағат бұрын
Java is best
@RandomSpaceFact788723 сағат бұрын
why are you uploading the same video twice?
@cyberjab23 сағат бұрын
Just use matrix transformation and binpow
@polaris8581Күн бұрын
Isnt that super memory inefficient? Like i know the goal is speed, but if the user inputs 10,000 youre gonna use up a huge chunk of memory for a sec.
@polaris8581Күн бұрын
I understand that it's marginal for this individual case, but it's good practice to care about memory use a bit
@MTAG22 сағат бұрын
@@polaris8581 Never care about memory or speed until it's a problem
@assortmentofpillsbutneverb375621 сағат бұрын
@MTAG 100% Mem and speed are phase 2 concerns unless errors start popping up
@Ibra_21 сағат бұрын
Yes, in the whole loop, he only needs the 2 previous numbers so he can use only 2 variables unless they ask to return all numbers from 0 to n
@viggodeboom1942Күн бұрын
Why would you use a list of you only need the previous 2
@NicklasUlvnasКүн бұрын
He cant remember since he now is out of memory...
@eforeyerman13 сағат бұрын
Came here to say this
@gabrielbarrantes69465 сағат бұрын
Not a god programmer at all
@GregHoggКүн бұрын
Master Dynamic Programming and all Data Structures and Algorithms for FREE at AlgoMap.io!
@alichopping2703Күн бұрын
These videos are great, can you do one for Combination Sum II?
@kallurinaveen3845Күн бұрын
🎉❤
@thisisloopКүн бұрын
Whats it real life application? Why do we need to know this?
@ShaeHeveyКүн бұрын
Appreciate the detailed breakdown! I need some advice: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). Could you explain how to move them to Binance?
@iverbrnstad791Күн бұрын
As a C++ dev: ain't no way it is an A tier interview language, there's so many strange bits to remember that would be a nightmare in a tense situation like an interview, and error messages that's designed to make you cry. It's a decent language for take homes, as it can do anything well, but I'd loathe programming in it in a high stress situation without the ability to google.
@FunNiceGuy444Күн бұрын
Why is php bad? What is it used for
@timothyhoytbsmeКүн бұрын
That was a lot more steps than just moving them all in a circle.
@GregHoggКүн бұрын
It's 2 steps
@dubzy4485Күн бұрын
just spent 4 hours trying to reverse a doubly linked list and this pops up smh
@samannoybКүн бұрын
Python programmers: python is goat Javascript programmers: js is goat C and Assembly: every language from us, we are the goats Computers: chill guys we just understand 1s and 0s
@davidgillies620Күн бұрын
The best way to do it is to know that no-one uses linked lists in production code. Use a deque and you're done.
@sumitgupta7553Күн бұрын
Hi Greg, I think this algo is for finding all subsequences instead of subsets! Kindly revert me if I'm wrong!
@alek002Күн бұрын
Thanks!
@dapygor9339Күн бұрын
???? The "Senior" solution is not even faster. In fact, it's like two times slower, mostly because of the constant factor of list of 26 elements.
@mohitsonwane804Күн бұрын
Hey! I have a better solution to implement. Instead of heap push and heappushpop(), we can just use heapify method from beginning onwards and iterate through the array (n - k) times. heapq.heapify(nums) while len(nums) > k: heapq.heappop(nums) return nums[0]
@444knuffelmacКүн бұрын
Did not watch the vid fully, my guess is N = the number you would like to know While true( If i(the thing that says squared forgot the short thing, like ==,<?) < n: I==I+1 Else if i(same as before) == n: Print("your number is an square root of" I) Else: Print("your number isnt an square root of an natural number") )
@444knuffelmacКүн бұрын
Also im an beginner in python, and also weak in javascript/html/css, so maybe i could have mixed the two, i tried to do python
@444knuffelmacКүн бұрын
Just saw the full vid, i think my solution was good enough, just not the right coding language, if i rememver how to do some of the things, i know i once saw something to square something, but i totally forgot it. And i also forgot how to ask for an input