Creativity, Teaching & Engineering

A technical blog sharing programming insights, math exploration, creative learning, and AI-powered education.

Programming Tutorials

Learn algorithms, data structures, and clean problem-solving strategies.

Math & IA Models

Explore creative IB Math IA, calculus models, voting theory, and real-world applications.

Teaching & Blog Writing

Sharing teaching experiences, educational tools, and creative learning methods.

Latest Articles

  • CCC ’18 S2 – Sunflowers

    Canadian Computing Competition: 2018 Stage 1, Junior #4, Senior #2 Barbara plants  different sunflowers, each with a unique height, ordered from smallest to largest, and records their heights for  consecutive days. Each day, all of her flowers grow taller than they were the day before. She records each of these measurements in a table, with one row…

  • CCC ’01 S2 – Spirals

    Canadian Computing Competition: 2001 Stage 1, Junior #4, Senior #2 A spiral of numbers can start and end with any positive integers less than . Write a program which will accept two positive integers  and  as input, and output a list of numbers from  to  inclusive, shown in a spiral. You may assume that the end value is greater than…

  • Phi Function

    Euler’s Totient Function (N), also known as the phi function, computes the number of integers less than equal to N that is also coprime to N. Two numbers are coprime if their GCD equals 1.  First note that if some integer P is prime, then (P) = P – 1  Also note that if P…

  • CCC ’97 S1 – Sentences

    Write a program which accepts as input a list of subjects, a list of verbs, and a list of objects, and produces all possible sentences which consist of a subject, a verb, and an object. Input Specification The first line of the input file contains a positive integer  which is the number of data sets which…

  • CCC ’07 S2 – Boxes

    Canadian Computing Competition: 2007 Stage 1, Senior #2 Nowadays, almost any item can be bought and sold on the internet. The problem is shipping. Before an item can be sent, it must be carefully packaged in a cardboard box to protect it. While items come in many shapes and sizes, finding a box just the…

  • CCC ’15 S1 – Zero That Out

    Canadian Computing Competition: 2015 Stage 1, Senior #1 Your boss has asked you to add up a sequence of positive numbers to determine how much money your company made last year. Unfortunately, your boss reads out numbers incorrectly from time to time. Fortunately, your boss realizes when an incorrect number is read and says “zero”,…

A Little About Me

I teach, write, and explore math models, creative coding, and algorithm thinking. My passion lies in using technology to inspire learning.