# Tag Archives: Arrays

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
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
An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements… 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
Given an array arr[][] consisting of N triplets ( start, end, rainfall in cms), defining rain will fall from the start location to the end… Read More
In PHP, an array is a type of data structure that allows us to store similar type of data under a single variable. The array… Read More
An Array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. Vectors… Read More
Given a string S of size N representing a monoalphabetic cipher, the task is to print the top five possible plain texts that can be… Read More
Given an array arr[][] consisting of N pairs such that each pair {L, R} represents that ith house can be painted in L number of… Read More
Given an array arr[] of size N, the task is to calculate the maximum sum that can be obtained by dividing the array into several… Read More
Given an array A[] of N positive numbers, the task is to find the maximum sum that can be formed which has no three consecutive… Read More
The following article discusses the way to return a local variable created inside a function, which can be done by returning a pointer to the… Read More
Given an array arr[] consisting of N integers, the task is to repeatedly remove elements that are smaller than the next element. Examples: Input: arr[]… Read More