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 ’98 S2 – Cross Number Puzzle

    Write a program to print: Input Specification There is no input. Output Specification All the perfect numbers between  and  inclusive on one line, followed by all integers between  and  inclusive which are equal to the sum of the cubes of their digits on one line. Solution

  • CCC ’13 S1 – From 1987 to 2013

    Canadian Computing Competition: 2013 Stage 1, Junior #3, Senior #1 You might be surprised to know that 2013 is the first year since 1987 with distinct digits. The years 2014, 2015, 2016, 2017, 2018, 2019 each have distinct digits. 2012 does not have distinct digits, since the digit 2 is repeated. Given a year, what…

  • 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”,…

  • CCC ’18 S1 – Voronoi Villages

    Canadian Computing Competition: 2018 Stage 1, Senior #1 In the country of Voronoi, there are  villages, located at distinct points on a straight road. Each of these villages will be represented by an integer position along this road. Each village defines its neighbourhood as all points along the road which are closer to it than to any other…

  • CCC ’15 J4 – Wait Time

    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…

  • GFSSOC ’15 Fall S2 – Hearth

    One of Calvin’s favourite pastimes is playing Super-Hearthstone with his friends! In Super-Hearthstone, mana crystals are used to play spells and creatures. Each card has a cost, which when played will expend that many mana crystals. Of course, you cannot play a card if you do not have enough of these crystals. Now, Calvin is…

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.