Solution to Leetcode 141: Linked List CycleIn this classic exercise, we need to return if the linked list contains a cycle.May 8, 2024May 8, 2024
Remove Linked List ElementsIn this exercise, we need to remove the nodes with value val from a linked list.May 7, 2024May 7, 2024
Solution to Leetcode 3092: Most Frequent IDsIn this exercise, we are tracking the frequencies of some IDs, and need to return the ID with max frequency after each operation.May 6, 2024May 6, 2024
Leetcode 3091: Apply operations to make sum of array greater than or equal to kIn this exercise with a very long title, we are given an array [1], then we can either:May 3, 2024May 3, 2024
Leetcode 3090: Maximum Length Substring with two occurencesIn this exercise, we want to find the maximum substring that has at most 2 of any character.May 3, 2024May 3, 2024
Leetcode Top Linked List exercises (Easy)This is a compilation of linked list exercises, in this post we will only tackle easy exercises to get familiar on how to use linked list…May 3, 2024May 3, 2024
Leetcode 242 Valid AnagramIn this exercise, we are given 2 strings, and we should return true if and only if they are anagrams.Apr 30, 2024Apr 30, 2024
Leetcode 15: 3SumIn this exercise, we are looking for all the triplets adding up to 0 in an array of integers. We use solution building on the solution for…Apr 30, 2024Apr 30, 2024
Leetcode 167: Two Sum II — Input Array is SortedIn this exercise, we need to find the unique pair of indices [x, y] such that numbers[x] + numbers[y] == target, with numbers a sorted…Apr 23, 2024Apr 23, 2024
Leetcode Top Sorting ExercisesSorting is fundamental to solve a lot of Leetcode problems, and dealing with sorted data structures can often be very useful. This is a…Apr 23, 2024Apr 23, 2024