Most teachers introduce solutions as fully-formed recipes. But in doing so, they totally miss how solutions are DISCOVERED. In painstaking detail, I go through this crucial missing piece and demonstrate how to methodically attack problems from every possible angle.
My teaching: https://watchandcode.com
Problem: https://leetcode.com/problems/ransom-...
0:00 Ransom Note problem statement
0:32 Initial thought process
2:31 First implementation
3:52 Big O analysis
4:57 Zooming out to a broader level
6:07 Second implementation
7:26 Big O analysis
8:02 Which is better?
8:19 Final thoughts
Watch video Ransom Note - LeetCode 383 - Python online without registration, duration hours minute second in high quality. This video was added by user Gordon Zhu 21 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 306 once and liked it 14 people.