Two Pointers

Pointers are variables that keep track of a position or an index of an element in a data structure such as an array or a linked list. Two pointers as the name suggests is an algorithm that utilizes two pointers(indices)…

Read more →

The split() and join() methods in python

These are what I like to think of as sibling methods.The split() method breaks a string into a list. As you know, a string is immutable in python. So sometimes when you want to make some changes, say reversing the…

Read more →

Euclidean Algorithm

So as you probably know, I started my Leetcode grind on the 15th of October 2026. First, as a way of kicking my imposter syndrome as a self-taught dev and secondly, as a way of improving my problem solving. I…

Read more →

Classes in Python. Lecture 11

A class is a template or a blueprint for constructing an object. Let’s say for example we have a list of students; If we went on to write the details of each one of these students, we would have to…

Read more →

Functions. Lecture 10

Suppose you want to carry out different number additions and print out the result. From what we have learned so far, you can do so by: While this program is correct, it is repetitive and it lacks good design. This…

Read more →