Pierre-Marie PoitevinSolution to Leetcode 141: Linked List CycleIn this classic exercise, we need to return if the linked list contains a cycle.·1 min read·2 days ago----
Pierre-Marie PoitevinRemove Linked List ElementsIn this exercise, we need to remove the nodes with value val from a linked list.·1 min read·3 days ago----
Pierre-Marie PoitevinSolution 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.·3 min read·4 days ago----
Pierre-Marie PoitevinLeetcode 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:·2 min read·May 3, 2024----
Pierre-Marie PoitevinLeetcode 3090: Maximum Length Substring with two occurencesIn this exercise, we want to find the maximum substring that has at most 2 of any character.·2 min read·May 3, 2024----
Pierre-Marie PoitevinLeetcode 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…·6 min read·May 3, 2024----
Pierre-Marie PoitevinLeetcode 242 Valid AnagramIn this exercise, we are given 2 strings, and we should return true if and only if they are anagrams.·2 min read·Apr 30, 2024----
Pierre-Marie PoitevinLeetcode 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…·2 min read·Apr 30, 2024----
Pierre-Marie PoitevinLeetcode 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…·2 min read·Apr 23, 2024----
Pierre-Marie PoitevinLeetcode 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…·11 min read·Apr 23, 2024----