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·2 days ago----
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…·8 min read·2 days ago----
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·2 days ago----
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·2 days ago----
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·3 days ago----
Pierre-Marie PoitevinLeetcode 2501: Longest Square Streak in an ArrayIn this Leetcode problem, we are given a list of ints, and we can rearrange them in any order we want to make a squares sequence such as…2 min read·Dec 14, 2022----
Pierre-Marie PoitevinWhat is wasted time?Oftentimes I hear that “people are wasting their time watching TV” or that I am wasting time doing X or Y, but I wonder, what exactly is…3 min read·Jul 13, 2022----
Pierre-Marie PoitevinLeetcode 2103: Rings and RodsIn this problem, we are given a list of rings going into rods, and we should return how many rods have rings with all the possible colors.·2 min read·Jan 21, 2022----
Pierre-Marie PoitevinLeetcode 2141: Maximum Running Time of N ComputersIn this problem, we try to figure out how long we can run n computers using a list of batteries. We have to use n different batteries at…·3 min read·Jan 20, 2022----
Pierre-Marie PoitevinLeetcode 2140: Solving Questions With BrainpowerIn this problem, we are trying to find a testing strategy to optimize the number of points in a test giving the following rules:·3 min read·Jan 19, 2022----