VVVidit Vatsindsa-decoded.hashnode.dev·4d ago · 2 min readLC-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 us00
SCS Choudharyinsam1593.hashnode.dev·Aug 16 · 3 min readArrays in C++ and JavaScript: What Changes and What Stays the Same?Introduction Arrays are one of the first data structures most developers encounter. They look simple: a collection of values stored together. But when you start using arrays in different programming l00
VVVidit Vatsindsa-decoded.hashnode.dev·Jul 16 · 5 min readLC-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 conta00
VVVidit Vatsindsa-decoded.hashnode.dev·Jul 16 · 2 min readLC 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]00
VVVidit Vatsindsa-decoded.hashnode.dev·Jul 15 · 2 min readLC-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 you00
AKAyush Kumarinblog.ayushcode.me·Jun 6 · 4 min readTop JavaScript Array Methods Every Beginner Should KnowWhen I first started learning JavaScript, I felt array methods were quite confusing, as there were many of them. But after practicing with some examples, I realised that array methods makes the code v00
PAPixel and Codeinlearning-data-structures.hashnode.dev·May 21 · 8 min readArraysAn array is a linear data structure used to store a group of elements of the same data type together in a single variable. These elements are stored in continuous (contiguous) memory locations, and ea00
HBHimanshu Balaniinblog.himanshubalani.com·May 10 · 6 min readArray Flatten in JavaScript: Untangling Nested DataIf you have been following our journey through JavaScript data structures, you already know that arrays are incredibly powerful tools for storing lists of data. (If you need a refresher, check out my 00
HBHimanshu Balaniinblog.himanshubalani.com·May 10 · 5 min readJavaScript Arrays 101Imagine you are building a simple to-do list application. You need a way to store the user's tasks. Using what you know about basic variables, you might try something like this: let task1 = "Buy groce00
AAbhinavinblog.meetabhinav.com·May 10 · 4 min readArray Flatten in JavaScriptEver opened a delivery only to find a small box inside a medium box, which is inside a large box? In programming, we call this "nesting." While nested arrays are great for storing complex data, they c00