The mathematical concept and computer science algorithms

8 6,957 439
articles words lines of code

Learn about the new module profiling that was introduced in Python 3.15 to organise the built-in profiling tools.

Learn how to use Tachyon, Python's sampling profiler.

This tutorial shows how to use a simple genetic algorithm to deduce physics formulas.

Today I learned not to cache generators.

It's night time and 4 friends need to cross a fragile bridge, but they only have one torch. What's the order in which they should cross?

You are sunbathing when you decide to go and talk to some friends under a nearby sun umbrella, but first you want to get your feet wet in the water. What is the most efficient way to do this?

Let's prove that if you want to maximise \(ab\) with \(a + b\) equal to a constant value \(k\), then you want \(a = b = \frac{k}{2}\).