# Tag Archives: Arrays

Given N and K, the task is to form an array where each element represents the number of ways to reach each index i (1… Read More
Given binary array A[] of size N, the task is to find the minimum cost to remove all elements of the array by performing moves… Read More
Given an array of integer nums[] and a positive integer K, the task is to find the maximum number of integers that can be selected… Read More
Given two arrays arr[] and arr2[], and a value K, the task is to check whether the array arr[] can be made to all zeros… Read More
Given an Array A[] of size N with repeated elements and all array elements are positive, the task is to find the maximum sum by… Read More
Given an array arr[] of size N and an integer k. Return True, otherwise False, if there’s any way to reach the last element of… Read More
Given two arrays a[] and b[] with both having size N. N operations have to be performed, and initially counter will be 0. Additionally, there… Read More
Given an array arr[] containing integers of size N and a number k, the task is to find the XOR of array elements that are… Read More
Given an integer array arr[] of length N and an integer K, the task is to rearrange the elements of arr[] in such a way… Read More
Given an array arr[] which is of 3*N size, the task is to remove N elements and divide the whole array into two equal parts… Read More
Before getting into at() method we should know about what arrays, strings and Typed array in JavaScript is and also how to access arrays JavaScript… Read More
Given an array A[], the task is to find the circulant matrix made by this array.  A circulant matrix is a square matrix of order… Read More
Given an array arr[] of size N where arr[i] ≤ N, the task is to find the minimum number of operations to sort the array… Read More
Given an array arr[] of length N, the task is to maximize the number of distinct elements in the array by performing either of the… Read More
Given an array arr[] and an integer L which represents the number of bits to be considered in bit representation of an array element. The… Read More