Longest Substring Without Repeating Characters in Swift

Longest Substring Without Repeating Characters Example solved in Swift

Hallo vrienden en familie, Leo hier. Today we will solve an interesting algorithm called Longest Substring Without Repeating Characters in Swift. That algorithm is solved with a very common tactic on algorithmic challenges called the “Sliding Window” technique/pattern. But what is that? The sliding window pattern consists in create a range, with beginning and end, […]

Linked List Problem – Add Two Numbers in Swift

Leetcode linked list problem called Add Two Numbers in Swift example

Hallo dames en heren, Leo hier. Today we will explore the Leetcode linked list problem called Add Two Numbers in Swift. The problem involves we apply the adding operations to two linked lists. It is not a complex problem but you should know how to traverse a linked list to solve it. Keeping the actual […]

Two Sum Problem in Swift

How to solve the Two Sum Problem in Swift with hash map and dictionary and brute force

Hallo beren en zalmen, Leo hier. Today we will solve the very first Leetcode challenge called the Two Sum problem in Swift. This problem looks very simple at first. You just have to traverse the array with two loops and find what is asked. But that is the best approach? What if we could optimize the […]

Recreating C++ atoi Function in Swift

Recreating C++ atoi Function in Swift example

Hallo iedereen, Leo hier. Today’s topic is how to solve a Leetcode problem that asks to recreate the atoi function in Swift that C/C++ has. This article is inspired by a Leetcode problem number 8 that is Integer to String(atoi) and we will solve that using Swift. We also have something interesting about integers in […]

Algorithm: Binary Tree Right Side View in Swift

Binary Tree Right Side View problem solved image example

Hallo vrienden, Leo hier. The Leetcode problem we will solve today is called Binary Tree Right Side View. We will explore a binary tree problem. Binary tree problems usually are down to two main approaches, breadth-first search, and depth-first search, which are BFS and DFS respectively. In our case, we will use BFS, because it […]

Merge Sort a Classic Algorithm Series in Swift

Merge Sort a Classic Algorithm Series in Swift and iOS example

Hallo vrienden, alles goed? Leo hier. Today we will study a classic sorting algorithm called Merge Sort and how you can do it in Swift. Today we will study what is in my opinion one of the most classic sorting algorithms, the legendary merge sort. I remember learning this in college and I was amazed […]

Odd Even Linked List Problem in Swift

Odd Even Linked List Problem in Swift guide solved

Hallo vrienden, Leo Hier. The topic today is how to solve the Odd Even Linked List problem in Swift. Today we will explore a linked list problem. Linked lists are a very curious data structure because you can have a lot of variants of them. For example, you can have a Doubly linked or a […]

Reverse Linked List Using Recursion

Reverse Linked List Using Recursion example image

Hallo alle mensen, Leo hier. Today’s topic is how to reverse linked list using recursion and how to do that in our custom linked list data structure. Today we will continue to explore the solution to the legendary interview problem called: Reverse Linked List. We study previously the solution using an iterative technique, now let’s […]

Iteratively Reverse Linked List in Swift

Reverse Linked List in Swift image example

Hallo vrienden, Leo hier. Today’s topic is how to Iteratively Reverse Linked List in Swift and how to reverse linked lists can be useful for you. This post will be very brief and very important to all involved in algorithms. Reversing Linked Lists is a legendary challenge as a common place to algorithm students. It’s […]

Linked Lists with Sequence and IteratorProtocol in Swift

Linked Lists with Sequence and IteratorProtocol in Swift example image

Hallo iedereen, Leo hier. The topic today is how to create Linked Lists with Sequence and IteratorProtocol in Swift. This week I came up with a problem with Linked Lists. Although they are very simple to construct in Swift, you can power up them to use Swift sugar syntax for-in loop operation to help yourself […]