Тёмный
Krac X
Krac X
Krac X
Подписаться
Jump Game - Leetcode 55 - Python
10:33
Год назад
01 Matrix - Leetcode 542 - Python
16:00
Год назад
Комментарии
@kspv2806
@kspv2806 6 дней назад
awesome thanks
@lianhuang5
@lianhuang5 2 месяца назад
非常好的,教學通俗易懂,希望大佬後續可以繼續出一個新的hashmap使用紅黑樹取代單向鏈表的寫法
@lianhuang5
@lianhuang5 2 месяца назад
希望有大佬可出一個中文字幕版本的,我們中國人聽這個真是有點吃力,只能直接看代碼了,後悔上學的時候沒有好好學習英文
@ArpGupta-oy4zx
@ArpGupta-oy4zx 2 месяца назад
Amazing !!! respect
@kaushit
@kaushit 3 месяца назад
You made me comment again, very well explained why can't we do certain things with logic, most of the youtubers only focusing what can we do in this problem.
@MrKracx
@MrKracx 3 месяца назад
hey man glad to help. i only done the blind 75, havent had time to do anything else, but hopefully the playlist helps out
@liambmn
@liambmn 4 месяца назад
Thank you! Massively useful for my CS course. And Paint as a visualisation tool is great!
@andreansihombing6780
@andreansihombing6780 4 месяца назад
What is this code below purpose in remove method? Entry<K, V> prev = e; e = e.next; while (e != null) { if (e.getKey() == key) { prev.next = e.next; e.next = null; return e; } prev = e; e = e.next; } I delete this code, and turn out fine without it. I can still remove data on the middle.
@kaushit
@kaushit 4 месяца назад
Thanks man for uploading this, Nobody has explained this much in detail, I have to fiddle around my filter to find your videos, all other top videos are shit.
@MrKracx
@MrKracx 3 месяца назад
Thanks! I have a playlist of the top blind questions if you wanna check that oit
@joelnicholas5422
@joelnicholas5422 4 месяца назад
I got my Functional programming final in 5 hrs and you literally saved my life with thinks, Cheers
@MrKracx
@MrKracx 3 месяца назад
👏🏻👏🏻
@frankqin1633
@frankqin1633 5 месяцев назад
Clear logic, concise code! thx!
@vedantgadhvi9315
@vedantgadhvi9315 5 месяцев назад
This is really an apt explanation! Thank you!
@Quisspo
@Quisspo 5 месяцев назад
this is by far the best and most understandable explanation of monads I stumbled upon so far
@sherloccode6272
@sherloccode6272 6 месяцев назад
Very Nice explaination. Thanks
@sanooosai
@sanooosai 7 месяцев назад
thank you
@reallifegambits
@reallifegambits 7 месяцев назад
complexity analysis?
@programmingwithnish483
@programmingwithnish483 8 месяцев назад
yea, this is what i was looking for. thanks man
@prorigami2444
@prorigami2444 8 месяцев назад
This is probably the best series on these topics. Great job! You earned a sub
@divineATheaven
@divineATheaven 8 месяцев назад
Thanks Bro 🤘
@AZ-dp4ht
@AZ-dp4ht 9 месяцев назад
Great series! Would you also consider making a video about different subjects such as parser combinators or foldable and traversable containers or even optics!
@JoeSwansonsLegs
@JoeSwansonsLegs 9 месяцев назад
where tf can i find your donation page
@MrKracx
@MrKracx 9 месяцев назад
lol
@Al-rt3ec
@Al-rt3ec 9 месяцев назад
hello whatsup if may could i know where do you take job as swe now?
@vitorg.teixeira
@vitorg.teixeira 9 месяцев назад
Great video! I find much better to learn by creating your own implementation, and only then going to code challenges!
@sabrinathan
@sabrinathan 10 месяцев назад
Wonderful explanation.. I think this is the easiest I have seen. Thanks a lot
@vijayakumareyunni6010
@vijayakumareyunni6010 11 месяцев назад
Excellent explanation than hyped Neetcode video -- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jSto0O4AJbM.html
@sonicjetson6253
@sonicjetson6253 11 месяцев назад
good job man
@yasaswinib9020
@yasaswinib9020 11 месяцев назад
Why is hashmap a array of Entry but not array of LinkedList<Entry>?
@stepovyk01
@stepovyk01 10 месяцев назад
There is no sense to have access to previous node
@lianhuang5
@lianhuang5 2 месяца назад
因為hashmap只需要做查找就行,對於查找來說只需要能夠從前往後或者從後往前,能夠支持一種方向遍歷就行,兩種都支持反而是一種冗餘了
@davannaleah
@davannaleah 11 месяцев назад
A couple of questions: How big is the array in the standard HashMap class provided in Java? I would think that 8 is rather small and you are just using 8 as a simple example. Can the standard array size be changed? Thanks for the video!
@MrKracx
@MrKracx 11 месяцев назад
docs.oracle.com/javase/8/docs/api/java/util/HashMap.html HashMap() Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75). you dont have to worry about changing the side, it happens automatically in the class
@aadityakiran_s
@aadityakiran_s Год назад
Very unique approach man. I appreciate it.
@snico5529
@snico5529 Год назад
in the while in the put fonction we can do this to no ? while (current != null) { if (current.key.equals(key)) { current.value = value; return; } if (current.next == null){ break; } current = current.next; } current.next = entry;
@abhisheknewase3467
@abhisheknewase3467 Год назад
I didnt understand what you said after 5:26. Please try to be little slow while speaking .liked it though👍
@MrKracx
@MrKracx Год назад
thanks, sorry about that. you can turn on CC . but anyways what i said was that after the if invalid call, we should just continue to next iteration. we should not be checking s[l].lower() == s[r].lower()
@abhisheknewase3467
@abhisheknewase3467 Год назад
got it thanks , appreciate it .@@MrKracx
@i_youtube_
@i_youtube_ Год назад
Your are great teacher!
@MrKracx
@MrKracx Год назад
Glad you think so!
@hamza_memon_
@hamza_memon_ Год назад
Great explaination
@JKAlexGH51
@JKAlexGH51 Год назад
Thank you for the clear explanation! I was actually bashing my head on that problem.
@MrKracx
@MrKracx Год назад
You're welcome!
@fbi7967
@fbi7967 Год назад
Thanks
@MrKracx
@MrKracx Год назад
No problem
@juanlora.1
@juanlora.1 Год назад
Thankss
@7SlothOCE
@7SlothOCE Год назад
can u be my university lecturer haha, this series was great thank you so much
@benpagel5240
@benpagel5240 Год назад
Saved my life
@ProsyMe
@ProsyMe Год назад
Great explanation on all 3 of your videos! Awesome
@BunnyButton
@BunnyButton Год назад
Again thank you very much for your effort to make these three videos, it helps tremendously for people like me who are struggling with these difficult terms.
@MrKracx
@MrKracx Год назад
thanks for watching the series!
@BunnyButton
@BunnyButton Год назад
Incredibly clear explanation! Finally understand what a functor is before my exam. Thank you so much for your making this tutorial!!
@MrKracx
@MrKracx Год назад
appreciate it thank you
@teamacio9043
@teamacio9043 Год назад
Good explanation but this is the quietest video I have ever watched and I'm a terminally online person.
@MrKracx
@MrKracx Год назад
yeah sorry the mic was so bad lmao
@TruthNerds
@TruthNerds Год назад
That's not quite correct. We can wrap functions using a functor. With access to the structure, e.g. "Just (const 5)" is a wrapped function in the Maybe functor. But that's "cheating"… using only fmap and an existing functor value v, this is also possible though, e.g. let's say v is "Just 5", then "fmap const v" creates a functor value containing a (trivial) function. These examples aren't really interesting, sure. And indeed Applicative is more interesting because it crucially allows going beyond wrapping a function. It allows *applying* this wrapped function to a wrapped value, yielding another wrapped value. Without understanding the functor structurally (e.g. using fromJust for the Maybe functor), this cannot be done using the functor alone. In your definition of (<*>) for Applicative Maybe2, you had to access the wrapped function using the internal knowledge of the Maybe2 data type. This is true in general, it is not possible to write a generic Applicative instance using only Functor (and it's equally impossible to write a generic Monad instance using only Applicative). Ok, to be exact, you didn't have to know the structure of the wrapped function but you did have to know the structure of *at least one* of function and value. This is because we can use fmap on a function too, supplying a parameter. fmap (+3) (Just2 5) = Just2 8 but equivalently fmap (\f -> f 5) (Just2 (+3)) = Just2 8 Haskell programmers being as lazy as the language (😉) would probably write the latter as fmap ($ 5) (Just2 (+3)) though. What this means in practice is that the difference between Functor and Applicative is that the former only allows lifting unary functions while the latter allows lifting binary functions (as is easily seen by the fact that, instead of pure and <*>, it's also permitted to define pure and liftA2). And this is a huge difference because not only are binary functions more powerful than unary functions but, using binary functions, we can also implement ternary functions and so on. I.e. Applicative allows combining wrapped values to produce another wrapped value, using only type class functions, which Functor does not allow.
@yoo17
@yoo17 Год назад
Thank you!! Very informative!!
@jubinkd9558
@jubinkd9558 Год назад
omggggg!! thankyou for the explanation!f papa!
@eduardoalvarez380
@eduardoalvarez380 Год назад
3 years old and this video still rocks
@MrKracx
@MrKracx Год назад
thanks for tuning in
@gam4524
@gam4524 Год назад
In my opinion we don’t need getters and setters in entry class
@khanttekyi1750
@khanttekyi1750 Год назад
Incredible explanation!
@rusalex6378
@rusalex6378 Год назад
YOU THE REAL TOP G
@pyropingouin
@pyropingouin Год назад
Thank you so much, If I pass my exam in two days, you'll deserve half the credit for it :P
@Deramida
@Deramida Год назад
I might be wrong, but pure for tree shoud be implemented as infinite recurrent in order to meet the identity rule of Applicative typeclass: pure id <*> v = v
@myxail0
@myxail0 Год назад
pure id <*> v = Tip id <*> v = id <$> v = v, so its alright