Skip to content

Tag Archives: Arrays

Given string str. The task is to count the number of all different strings possible if two consecutive same characters of the string can be… Read More
Given an array arr[] of N integers, the task is to find the longest subarray where all numbers in that subarray are prime.  Examples:  Input:… Read More
Given an array of integers and a number K. The task is to find the maximum sum which is divisible by K from the given… Read More
Prerequisite: Arrays in C++, Vector in C++ STL An array is a collection of items stored at contiguous memory locations. It is to store multiple… Read More
Given n x n points on cartesian plane, the task is to find the weight at (xi, yj) after m operation. xi, yj, w denotes… Read More
There is no size() method available with the array. But there is a length field available in the array that can be used to find… Read More
Given an array of size n, the task is to add an element x in this array in Java. The size of the array cannot… Read More
Given an array Arr[] of N of positive integers. The task is to find positions of all the elements which are equal to the sum… Read More
Given an unsorted array with both positive and negative elements. The task is to find the smallest positive number missing from the array. Examples:  Input:… Read More
Prerequisite: MPI – Distributed Computing made easy Message Passing Interface(MPI) is a library of routines that can be used to create parallel programs in C… Read More
Given an array arr[] of N elements and an integer X, the task is to find the minimum number of operations required to make sum… Read More
Pointer to an array: Pointer to an array is also known as array pointer. We are using the pointer to access the components of the… Read More
Given two arrays, we have to check whether we can sort two arrays in strictly ascending order by swapping A[i] and B[i]. Examples:  Input :… Read More
Given an array arr[] of N integers where all elements of the array are from the range [0, 9] i.e. a single digit, the task… Read More
Given an array of numbers and the value of , check if each number can be expressed as the product of exactly prime numbers. For every element of the… Read More

Start Your Coding Journey Now!