Pierre-Marie PoitevinSolution to Leetcode 141: Linked List CycleIn this classic exercise, we need to return if the linked list contains a cycle.May 8May 8

Pierre-Marie PoitevinRemove Linked List ElementsIn this exercise, we need to remove the nodes with value val from a linked list.May 7May 7

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.May 6May 6

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:May 3May 3

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.May 3May 3

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…May 3May 3

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.Apr 30Apr 30

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…Apr 30Apr 30

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…Apr 23Apr 23

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…Apr 23Apr 23