LC-75 Sort Colors(Dutch Flag Problem)You are given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue. We will usAug 25 · 2 min readdsa-decoded.hashnode.dev
LC-18 4SumGiven an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that: 0 <= a, b, c, d < n a, b, c, and d are distinct. nums[a] + nums[b] +Aug 25 · 4 min readdsa-decoded.hashnode.dev
LC-15 3Sum ProblemGiven an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contaJul 16 · 5 min readdsa-decoded.hashnode.dev
LC 167 Two Sum II - Input Array Is SortedGiven a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1]Jul 16 · 2 min readdsa-decoded.hashnode.dev
LC-1 Two Sum ProblemWe are given an array of integers nums and an integer target. Return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and youJul 15 · 2 min readdsa-decoded.hashnode.dev