Post image
Light Mode
Dark Mode
Patterns, Performance, and Productive Logic

Hello, checkiomates🐱‍👤!

This week's digest explores the depths of code quality, from detecting performance regressions with Big-O tests to mastering recursive structural pattern matching. We also recap the year with a Django quiz and challenge you to calculate the factorial of a number.

💡TIP

If you find an interesting solution, you may add it to your bookmarks by clicking the flag near solution title. You can find all your bookmarked solutions by clicking your nickname and then "Bookmarks".
If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

🏁 MISSION

Number With Exclamation by freeman_lex -

This function should take a non-negative integer as an input and return the factorial of that number.

factorial(1) == 1
factorial(5) == 120
factorial(10) == 3628800

📖 ARTICLES

Unit testing your code’s performance, part 1: Big-O scaling -

Testing your code is important, but not just for correctness also for performance. One approach is to check performance degradation as data sizes go up, also known as Big-O scaling.

Recursive structural pattern matching -

Learn how to use structural pattern matching (the match statement) to work recursively through tree-like structures.

Django Quiz 2025 -

The December quiz is an annual tradition at our meetup, a way of making this final event of the year more relaxed and giving away some nice prizes.

👩‍💻CODE SHOT

What do you think the following code does?

from itertools import groupby


def checkio(a):
    for _, cons in groupby(a):
        yield sum(cons)

🙌 Thanks for your attention! Hope to meet you at CheckiO, as well as at our Instagram and Twitter! We are really interested in your thoughts! Please, leave a comment below! ⤵

Created: Jan. 19, 2026, 7:51 p.m.
0
41
User avatar
freeman_lex