Algorithms

The definitive example to learn recursion and backtracking: the maze problem

Recursion is a very important tool in programming. It is also difficult to understand. In this post, I want to show an example of a problem that can be solved with recursion and will help you understand how to use backtracking. Backtracking is a useful technique we can use to verify all the possible solutions

The definitive example to learn recursion and backtracking: the maze problem Read More »

How to extract digits from a number from right to left without using strings in Python

Working with numbers is one of the first skills you should get when learning programming. It does not matter what programming language you are learning. This is always useful because it helps you to learn how algorithms work. The short answer to this question is to use operations from mathematics: division, the remainder of division

How to extract digits from a number from right to left without using strings in Python Read More »