gayatri kumargeekee.hashnode.dev·Nov 2, 2024Advanced Array Methods: Mapping the Future!Imagine you’re about to embark on an epic journey, where you can shape the world around you. You’re given a map, and along the way, you decide which paths to take, what to gather, and how to calculate the resources you collect. In JavaScript, advance...Discuss·21 likesWeb Developmentjs

Samir Mishrasamirmishra27.hashnode.dev·Nov 2, 2024These 4 New JavaScript Methods are a game changer!In July 2023, ECMAScript released several new specifications for JavaScript. Some of the features include new Array methods that do not modify the existing array. In this blog, we will talk about three of them (one from 2024) that you must know if yo...DiscussJavaScript

gayatri kumargeekee.hashnode.dev·Nov 1, 2024Collections Galore: Arrays Explained!Imagine you’re hosting a party, and all your friends are lined up in a neat list. You want to know who’s attending, add new friends, remove a few, or maybe even shuffle them around. In JavaScript, arrays are the perfect tool for managing collections ...Discuss·30 likesWeb Developmentjs

Think Throothinkthroo.hashnode.dev·Nov 2, 2024arrayToDict function in tRPC source codeIn this article, we analyze arrayToDict function found in tRPC source code. // https://github.com/trpc/trpc/pull/669 function arrayToDict(array: unknown[]) { const dict: Record<number, unknown> = {}; for (let index = 0; index < array.length; index+...DiscussJavaScript

Saswat Palsaswatpal.hashnode.dev·Nov 2, 2024Arrays and ArrayList in JavaWhy do we need Array? It is very simple when we need to store just five integer numbers. Now let us assume we have to store 1000 integer numbers. Is it possible to use 1000 variables? No. To handle these situations, in almost all programming language...Discussarray

Sam (Mohsen) Kamraniblog.0dev.io·Nov 2, 2024How to Remove a Specific Item From an Array in JavaScript?It’s very common to need to remove a certain value from an array in JavaScript. In this post, I’ll show you not only how to do so, but also how to implement it as if it were a native method on arrays, with flexibility for handling different types of ...DiscussJavaScript

Vasubhi Guptavasubhigupta.hashnode.dev·Nov 1, 2024Arrays Explained: The Building Block of Data StorageBefore we get started on what are arrays, let us first understand what data structures are. Data Structure: It is a way of organizing, storing and managing data in a computer’s memory, so that it can easily be manipulated, maintained and accessed eff...Discussarray

Kayoungkykim.hashnode.dev·Oct 28, 2024[Snippet] 배열 생성하기1. Array.from let num = Array.from({ length: n }, (_, i) => i + 1) length가 n인 배열을 만들고, 각 요소를 1부터 n까지 채워줌 순회 가능 또는 유사 배열 객체에서 얕게 복사된 새로운 배열 인스턴스 생성 2. Array와 fill, map let num = Array(n).fill(0).map((_, i) => i + 1); Array(n)은 n 길이의 빈 배열을 생성하고,...DiscussSnippetarray

KUNALkunaltheengineer.hashnode.dev·Oct 22, 2024Intersection of Two ArraysLevel: Easy Topics: Array, Hash Table, Two Pointers, Binary Search, Sorting Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and you may return the result in any order. Example...Discuss·1 like·27 readsCodingarray

Ameet Madanblog.ameetmadan.com·Oct 21, 2024Finding the Longest Consecutive Sequence in a Circular RangeProblem Description Given an array of integers representing week numbers (1-52), find the length of the longest consecutive sequence. The sequence can wrap around from week 52 to week 1, treating the range as circular. Theoretical Approach Preproces...DiscussDSA