Thirumalaitthirruu.hashnode.dev·Mar 17, 2024ArraysAn array is a structure of fixed-size, which can hold items of the same data type. It can be an array of integers, an array of floating-point numbers, an array of strings or even an array of arrays (such as 2-dimensional arrays). Arrays are indexed, ...Discussarrays
Charlie charliej.hashnode.dev·Mar 17, 2024Unlocking the Power of the for...of Iterator in JavaScriptIntroduction The for...of iterator is a powerful feature in JavaScript that allows you to iterate over objects, such as arrays, strings, maps, and sets. This post aims to explore the usefulness of the for...of iterator, providing real-world examples ...DiscussArray MethodsJavaScript
Jemin Kikanijemin.hashnode.dev·Mar 17, 2024Day 8 : What is an Array? And how many types of an Array Methods in javascript?Array An array is a special variable, which can hold more than one value. An array can hold many values under a single name, and you can access the values by referring to an index number. Syntax:- const array_name \= [item1, item2, ...]; Example:...DiscussNumeric Sort
Dhanushdhanushprofile.hashnode.dev·Mar 14, 2024Reverse Array - Java ProgramSolution in Java: import java.util.*; import java.io.*; class ReverseArray{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int arr[] = new int[n]; for(int i=0; i<n; i++){ arr[i] = sc.nextInt(); } f...Discuss·1 likeJavaJava
Nirbhay Singhnirbhaycodes.hashnode.dev·Mar 10, 2024Product of Array Except SelfProduct of Array Except Self Problem Link: https://leetcode.com/problems/product-of-array-except-self/description/ Hint: https://www.loom.com/share/c0477a0822e343ecb2dfee244488cc4e?sid=d36dbb54-70a3-4f80-90e9-18b9ba244f76 Code: class Solution { pub...Discuss·42 readsDSA prepleetcode
Chetan Dattachetan77.hashnode.dev·Feb 18, 2024493. Reverse PairsGiven an integer array nums, return the number ofreverse pairsin the array. (link) A reverse pair is a pair (i, j) where: 0 <= i < j < nums.length and nums[i] > 2 * nums[j]. Example 1: Input: nums = [1,3,2,3,1] Output: 2 Explanation: The reverse ...DiscussLeetcodereverse pairs
Kandy Hamisi Saidkandycoder.hashnode.dev·Feb 13, 2024Mastering Array Transformations: A Journey Through LeetCode Practice ExerciseIntroduction: Array transformations are fundamental operations in programming, and mastering them is essential for tackling a wide range of algorithmic problems. In this article, we will journey through LeetCode's practice exercises on array transfor...Discuss·1 like·65 readsdata structures
Adrianna Bellthecodedcosmos.hashnode.dev·Feb 13, 2024Everything to know about Array Iteration MethodsArray Iterations are like tools inside of a toolbox labeled Array Changes. This toolbox holds different tools that will allow us (developers) to change or mutate our Javascript Arrays. Javascript Array Iterators helps us iterate (to do over again, re...Discussarrays
Divyanshu Jaindivyanshujain.hashnode.dev·Feb 3, 2024Introduction to Arrays in C++(Part-1)What is Array? Array is a data structure which is used to store multiple values of similar data type in contigous memory locations. Array is a linear data structure as elements are stored in contigous memory locations. Linear data structure are type ...Discussdata structures
Chetan Dattachetan77.hashnode.dev·Jan 21, 202456. Merge IntervalsProblem Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. (link) Example 1: Input: intervals = [[1,3],[2,6...DiscussLeetcodemerge-intervals