Пікірлер
@Shukkone
@Shukkone 55 минут бұрын
i see the way you arranged the companies to almost spell out faapng! 😂😂
@amythistfire5042
@amythistfire5042 19 минут бұрын
FAANG is the name of the 5 tech giants. He didn't arrange them in a special way
@barmalini
@barmalini Сағат бұрын
this oneliner is not my solutiion, but works like a charm: return matrix and [*matrix.pop(0)] + self.spiralOrder([*zip(*matrix)][::-1])
@GregHogg
@GregHogg Сағат бұрын
Master dynamic programming and all data structures and algorithms for FREE at AlgoMap.io :)
@mrinalghosh7060
@mrinalghosh7060 Сағат бұрын
1st
@keifer7813
@keifer7813 2 сағат бұрын
Nicely explained
@JoeTan-nq4fq
@JoeTan-nq4fq 2 сағат бұрын
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-f4c
@PriyanshDhakad-f4c 4 сағат бұрын
Java
@sonhoang8986
@sonhoang8986 4 сағат бұрын
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_threejs
@Katlex_threejs 4 сағат бұрын
Love u content
@zakie_chan0423
@zakie_chan0423 5 сағат бұрын
Not as bad as u think is a massive understatement
@RefaatIbrahimXIT
@RefaatIbrahimXIT 5 сағат бұрын
Hi Greg
@RefaatIbrahimXIT
@RefaatIbrahimXIT 5 сағат бұрын
I wanna get it but unfortunately I can not afford it. Any possible solutions Regards
@imnottellingyoumyname3050
@imnottellingyoumyname3050 7 сағат бұрын
Yeah but why does it matter
@MuhamadMuhamad-de4ot
@MuhamadMuhamad-de4ot 8 сағат бұрын
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
@shivamgoyal796
@shivamgoyal796 11 сағат бұрын
Memoization or tabulation
@davidgillies620
@davidgillies620 13 сағат бұрын
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-tn6sc
@sparkspark-tn6sc 17 сағат бұрын
What about java springboot?
@kidusbk3021
@kidusbk3021 18 сағат бұрын
LRU Cache, hold my beer.
@benbrook469
@benbrook469 13 сағат бұрын
why lru cache instead of cache
@tauicsicsics
@tauicsicsics 19 сағат бұрын
great video but please by a tablet and a pen, the writing is quite hard to understand, thanks
@joneskiller8
@joneskiller8 19 сағат бұрын
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_dy2629
@broken_dy2629 19 сағат бұрын
I see, this resembles bottom-up approach, great explanation!
@amjadalthabteh4680
@amjadalthabteh4680 20 сағат бұрын
Bros actually the GOAT! explains things in a different way fr
@redfinance3403
@redfinance3403 20 сағат бұрын
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)
@nicosmonaute4183
@nicosmonaute4183 20 сағат бұрын
Use lru cache bro
@Freddythedog-e8c
@Freddythedog-e8c 22 сағат бұрын
Java is best
@RandomSpaceFact7887
@RandomSpaceFact7887 23 сағат бұрын
why are you uploading the same video twice?
@cyberjab
@cyberjab 23 сағат бұрын
Just use matrix transformation and binpow
@polaris8581
@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
@polaris8581 Күн бұрын
I understand that it's marginal for this individual case, but it's good practice to care about memory use a bit
@MTAG
@MTAG 22 сағат бұрын
@@polaris8581 Never care about memory or speed until it's a problem
@assortmentofpillsbutneverb3756
@assortmentofpillsbutneverb3756 21 сағат бұрын
​@MTAG 100% Mem and speed are phase 2 concerns unless errors start popping up
@Ibra_
@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
@viggodeboom1942 Күн бұрын
Why would you use a list of you only need the previous 2
@NicklasUlvnas
@NicklasUlvnas Күн бұрын
He cant remember since he now is out of memory...
@eforeyerman
@eforeyerman 13 сағат бұрын
Came here to say this
@gabrielbarrantes6946
@gabrielbarrantes6946 5 сағат бұрын
Not a god programmer at all
@GregHogg
@GregHogg Күн бұрын
Master Dynamic Programming and all Data Structures and Algorithms for FREE at AlgoMap.io!
@alichopping2703
@alichopping2703 Күн бұрын
These videos are great, can you do one for Combination Sum II?
@kallurinaveen3845
@kallurinaveen3845 Күн бұрын
🎉❤
@thisisloop
@thisisloop Күн бұрын
Whats it real life application? Why do we need to know this?
@ShaeHevey
@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
@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
@FunNiceGuy444 Күн бұрын
Why is php bad? What is it used for
@timothyhoytbsme
@timothyhoytbsme Күн бұрын
That was a lot more steps than just moving them all in a circle.
@GregHogg
@GregHogg Күн бұрын
It's 2 steps
@dubzy4485
@dubzy4485 Күн бұрын
just spent 4 hours trying to reverse a doubly linked list and this pops up smh
@samannoyb
@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
@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
@sumitgupta7553 Күн бұрын
Hi Greg, I think this algo is for finding all subsequences instead of subsets! Kindly revert me if I'm wrong!
@alek002
@alek002 Күн бұрын
Thanks!
@dapygor9339
@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
@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
@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
@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
@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