Skip to content

Tag Archives: Arrays

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
Given an array arr[], consisting of N positive integers. The task is to minimize the difference between the maximum and the minimum element of the… Read More
Given an array arr[] of size N and integer K, the task is to maximize the sum of the array by performing the following operations… Read More
Given N lowercase sentences, the task is to find the minimum count of words among all of these sentences.  Examples:  Input: arr[] = { “there is… Read More
Given an array arr[] consisting of N positive integers, the task is to print the minimum number of steps required to make the array such… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
What is Array? An array is the collection of multiple items of the same type stored contiguous memory locations. The position of each element can… Read More
Given a binary array arr[] containing N integer elements, the task is to create a string s which contains all N elements at the same… Read More
Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements.  Rotation of the above array by 2 will make array… Read More
Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements.  Rotation of the above array by 2 will make array… Read More
Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements.  Rotation of the above array by 2 will make array… Read More

Start Your Coding Journey Now!