ArraysMedium-ProblemsMedium-ProblemsProblemDifficultySolution Link2Sum ProblemMediumSolutionSort an array of 0's 1's and 2'sMediumSolutionFind the UnionMediumSolutionPrint subarray with maximum subarray sum (extended version of above problem)MediumSolutionFind the number that appears once, and other numbers twiceMediumSolutionRearrange the array in alternating positive and negative itemsMediumSolutionNext PermutationMediumSolutionLongest subarray with given sum K(positives)MediumSolutionLongest subarray with sum K (Positives + Negatives)MediumSolutionLongest Consecutive Sequence in an ArrayMediumSolutionSet Matrix ZerosMediumSolutionRotate Matrix by 90 degreesMediumSolutionPrint the matrix in spiral mannerMediumSolutionPascal's TriangleMediumSolutionMajority Element (n/3 times)MediumSolution3-Sum ProblemMediumSolutionLargest Subarray with 0 SumMediumSolutionMerge Overlapping SubintervalsMediumSolutionMerge two sorted arrays without extra spaceMediumSolution