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: watchandcode.com
Link to problem: leetcode.com/problems/fizz-buzz/
0:00 Agenda (problem, history, twist)
0:33 Problem statement
1:08 1-indexed?
2:14 Venn diagram
3:07 Explicit logic
4:41 Danger of implicit logic
6:32 Explicit implementation
8:26 Implicit implementation
9:10 Time/space complexity
9:36 Historical context
12:29 My twist on FizzBuzz
11 июл 2024