Tag: function

Posted in Beginner Numbers

Have we already seen this number? (deja vu again)

I had a phone interview for a Python job the other day. It started out really well, he was very… read more Have we already seen this number? (deja vu again)

Posted in Basic

Popular Sorting Algorithms

Sorting is probably the most common type of algorithm in programming. A sorting algorithm puts elements of a list in a certain… read more Popular Sorting Algorithms

Hilbert curve
Posted in Fractals Intermediate Turtle

Drawing Fractals with Lindenmayer Systems

Lindenmayer systems, or L-systems, provide a very powerful way to construct fractals. Lindenmayer used L-systems to describe the behaviour of… read more Drawing Fractals with Lindenmayer Systems

Harmonograph
Posted in Harmonograph Intermediate

Extensible Harmonograph

Often seen in science museums, the harmonograph is a device that combines wave motions (e.g. from some pendulums) to move… read more Extensible Harmonograph

Posted in Basic Numbers

Binary Search

Binary Search is one of the most fundamental computer algorithms. Given an ordered list of some data (names, numbers, …)… read more Binary Search