Tag Archives: Arrays

Given an array arr[], the task is to find the count of array elements whose squares are already present in the array. Examples: Input: arr[]… Read More
Given an array arr[] of size N and a positive integer K, the task is to find the minimum possible cost to split the array… Read More
Given an array arr[] of size N and an integer K, the task is to find all the array elements that appear more than (N… Read More
Given an array arr[] of size N and an integer K, the task is to check if all array elements can be made equal by… Read More
Given an array arr[] of size N, the task is to find the largest non-repeating element present in the given array. If no such element… Read More
Given two arrays A[] and B[] of size N, the task is to count the minimum number of swaps of similar indexed elements required to… Read More
1. Array in C : An array is collection of similar data items accessed by a common name stored at continuous memory locations. The elements… Read More
Given an array wood[] of size N, representing the length of N pieces of wood and an integer K, at least K pieces of the… Read More
Given an array arr[] consisting of N positive integers, the task is to maximize the sum of the array element such that the first element… Read More
Here is the collection of the Top 50 list of frequently asked interviews question on arrays. Problems in this Article is divided into three Levels… Read More
Given a set of integers S, the task is to divide the given set into two non-empty sets S1 and S2 such that the absolute… Read More
Given an array arr[], the task is to find the elements of a contiguous subarray of numbers which has the largest sum. Examples: Input: arr… Read More
Given an integer N, the task is to print all the possible ways in which N can be written as the sum of two or… Read More
Given an array prices[] which denotes the prices of the stocks on different days, the task is to find the maximum profit possible for buying… Read More
Given an integer array arr[] of size N, the task is to count the total number of distinct pairs having minimum absolute difference. Examples:   Input: arr[]… Read More