The Curious Engineer

All blogs / Algorithms / data structures

Math ∪ Code by Sahand Saba

sahandsaba.com

Coding, mathematics, and problem solving by Sahand Saba.

Algorithms / data structuresPythonMath

’15’20’25
Posts
44 from 22 Dec 2012 to 29 Sep 2026
Posting
now and then (2 in the last year)
Kind
personal blog
Feed
https://sahandsaba.com/feeds/all.atom.xml

2026 2

  1. The Deadlock-Detection Storm That Brings PostgreSQL to a Halt
  2. From AI Agents to AI Controllers

2024 2

  1. 14 More Python Features and Tricks You May Not Know About
  2. 10 Questions to Ask a Software Engineer Hiring Manager During the Team Matching Phase

2018 4

  1. Combinatorial Generation For Coding Interviews With Examples In Python
  2. 6 Minimum Steps To Securing Your Online Identity And Data
  3. From An Iterator of Iterators to Cantor's Paradise: A Deep Dive Into An Interview Question
  4. Generating All Balanced Parentheses: A Deep Dive Into An Interview Question

2016 2

  1. Graph Algorithms For Coding Interviews
  2. Fun With Python Coroutines: Generating Permutations

2015 3

  1. The Infinite In Haskell and Python
  2. 9 Anti-Patterns Every Programmer Should Be Aware Of
  3. Understanding Recurrence Relations Using Automata, Python Code, And Javascript Visualizations

2014 9

  1. Understanding Asynchronous IO With Python's Asyncio And Node.js
  2. Turing Recognizability of Turing Machines That Accept All Strings
  3. Visualizing Philosophers And Scientists By The Words They Used With Python and d3.js
  4. It From Bit - A Brief Exploration Of Some Ideas and Results From The Theory of Computation
  5. Understanding SAT by Implementing a Simple SAT Solver in Python
  6. So How Do You Actually Calculate The Fibonacci Numbers?
  7. Combinatorial Generation Using Coroutines With Examples in Python
  8. 30 Python Language Features and Tricks You May Not Know About
  9. Multilinear Representation of Boolean Functions

2013 21

  1. Understanding Two-Step Verification With An Example Using Python and Google Authenticator
  2. Line Intersecting Maximal Number of Circles (Circle "Stabbing" Problem)
  3. Finding the Tangent Line to Two Circles Demonstrated Using JSXGraph
  4. Thales Inscribed Angle Theorem Demonstrated Using JSXGraph
  5. Expected Running Time of Two Randomized Sort Algorithms (ACM ICPC 2013 PACNW Regional)
  6. Pattern Matching in Fibonacci Words (ACM ICPC World Finals 2012)
  7. Programmer's Guide to Setting Up a Mac OS X Machine
  8. Fibonacci Primitive Roots of Primes (Project Euler)
  9. Common Substring Permutation
  10. Visualizing the Convex Hull Using Raphaël
  11. Basics of Cryptography Part I: RSA Encryption and Decryption
  12. Hundred Prisonors and a Room With a Light Switch
  13. A Study of Python's More Advanced Features Part III: Classes and Metaclasses
  14. Interview Question: All Possible Products of a List of Primes
  15. Problem-Solving Lessons From George Pólya
  16. Interview Question: Fair and Unfair Coins and Bayes Theorem
  17. A Study of Python's More Advanced Features Part II: Closures, Decorators and functools
  18. A Study of Python's More Advanced Features Part I: Iterators, Generators, itertools
  19. Interview Question: Fairness from Unfairness and Randomness Extraction
  20. Manbelbrot Meets HTML5 - A Little Fractal Geometry
  21. Interview Question: Grouping Words Into Anagrams

2012 1

  1. A Christmas-Themed Experiment - HTML5 Canvas Snowflakes