VVVidit Vatsindsa-decoded.hashnode.dev·3d ago · 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·4d ago · 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·4d ago · 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
HBHimanshu Balaniinblog.himanshubalani.com·May 10 · 6 min readJavaScript Arrays: The 7 Methods You Actually Need to KnowWhen I first learned JavaScript, my answer to every problem was a for loop. Need to double some numbers? Write a for loop. Need to filter out inactive users? Create an empty array, write a for loop, a00
AKAnkur Kumawatinhustlecoderankur.hashnode.dev·May 10 · 6 min readArray Flatten in JavaScriptSo at some point you're going to run into an array that has arrays inside it. Maybe you got it from an API response, maybe you built it that way while processing data, maybe it's just an interview pro00