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·1 day ago----
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·1 day ago----
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…·4 min read·2 days ago----
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·4 days ago----
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·4 days ago----
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----
Pierre-Marie PoitevinLeetcode 80: Remove Duplicates from Sorted Array IIThis is a variant on Remove Duplicates from Sorted Array which for which I put a solution in this link.·1 min read·Apr 23, 2024----
Pierre-Marie PoitevinLeetcode 26: Remove Duplicates from Sorted ArrayIn this exercise, we have a sorted array nums, and we want to update it so that there is no duplicate anymore in-place, and we return the…·2 min read·Apr 22, 2024----
Pierre-Marie PoitevinLeetCode 88: Merge Sorted ArraysIn this exercise, we need to take 2 sorted arrays and merge them into one sorted array. The change should be done “in place” and the result…·3 min read·Apr 22, 2024----