Rohan ArorainRed Coder PublicationsTwo Pointers: Remove Duplicates from Sorted Array IIGiven a sorted array, remove the duplicates in place such that each element can appear at most twice and return the new length.Mar 24, 2021Mar 24, 2021
Rohan ArorainRed Coder PublicationsTwo Pointers: 3 Sum ZeroGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives…Mar 24, 2021Mar 24, 2021
Rohan ArorainRed Coder PublicationsTwo Pointers: 3 SumGiven an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the…Mar 24, 2021Mar 24, 2021