The Art of One-Liners
summary
Covers techniques for writing Python solutions as single expressions by using functional programming concepts, lazy evaluation, and lesser-known language tricks; the first part explains core FP ideas and concise idioms for common tasks, the second part demonstrates advanced and “dirty” tricks to push one-expression solutions further.
AI-written summary · about
chapters (19)
- 0:00One-liners intro
- 1:53About speaker
- 3:01What is expression
- 6:14Functional basics
- 8:19Python walrus operator
- 10:50Python lazy evaluation
- 14:41Sum of squares task
- 18:15Logical vs bitwise ops
- 21:29Sum even numbers
- 22:34Frequency with Counter
- 23:17Check anagrams
- 25:24Dirty functional
- 27:32First positive element
- 29:01Reverse tree traversal
- 31:52Linked list iteration
- 34:20Two-sum problem
- 35:45Max zeros-ones split
- 37:10Any task solvable?
- 38:36Q&A
