Fizz Buzz - LeetCode 412 - Python

preview_player
Показать описание
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.

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
Рекомендации по теме
Комментарии
Автор

What did you think of the problem and Imran's original post?

GordonZhu
Автор

please upload more tutorial as soon as possible.

raadarafin
Автор

If divisible by 3
Else if divisible by 5
Else if divisible by 15

No number divisible by both 3 and 5 is not divisible by 15. And any number divisible by 15 is divisible by both 3 and 5.

alhambra