Home
sbozich
Cancel

Codewars review - lessons learned after solving 100 challenges

Coding, like any other skill, needs constant improvement, time investment, commitment and honing. Regardless of the knowledge level you’re at, if you don’t practice, your performance in the field w...

Understanding recursion - Towers of Hanoi

A recursion is problem-solving method which calls itself in a range of calls until the base one. Only the base call is defined with clear solution; other ones are derived from it. A base call final...

Garbage collection in Python

When it comes to memory management, the vital task of any developer is taking care of a memory requirements of given program. This assumes allocating and dislocating the memory occupied by the vari...

The joys of Dynamic Typing, Part Two - Mutables

In the first part of this text, we have seen that the defining characteristic of the Python is the dynamic typing; the possibility of creating variables without their declaration but rather with im...

The joys of Dynamic Typing, Part One - Immutables

In traditional, statically-typed languages there is a data type classification which needs implicit declaration to every variable, function and OOP object. If the variable’s data type is for instan...

Behind Python's lines

The final product of the user’s code in Python is .py file. On its execution, the source file is passed to a Python as an argument, compiled to the intermediary byte-code and then interpreted in th...

Algorithms’ complexity analysis - Big-O examples with explanations

As Big-O algorithm’s time complexity is very common theoretical concept, investing some time in understanding it can pay off when implementing solution to some problem, because finding time complex...

Algorithms’ complexity analysis - the Big-O Notation

As there usually are multiple ways to solve the given problem, given the multiple algorithms’ implementation, one would find their comparation useful. This is what is algorithm analysis all about. ...

Python’s (non-existing) increment/decrement operators

Have you tried using very basic ++/– operators in Python? Incrementing/decrementing of numeric variables should be routine, right? Actually, it turns out they do not exist, and that they are not ne...

Missing ‘switch’ Statement? Python 3.10 gets you covered

Most languages support multiple flow control statements, vast majority of them is familiar with if and switch. So, someone coming from C/C++/Java/C# and alike languages might wonder about equivalen...