Skip to content

Tag Archives: Arrays

Given a lower triangular matrix Mat[][], the task is to store the matrix using column-major mapping. Lower Triangular Matrix: A Lower Triangular Matrix is a… Read More
Given an array A[] and a positive integer X. The task is to find the absolute difference between the floor of the total sum divided… Read More
Prerequisite: Switch Statement in C/C++, Functions in C/C++, Loops in C and C++, C/C++ do-while loop with Examples Write a menu-driven program to perform below… Read More
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 of… 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
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 that has the largest sum. Examples: Input: arr… Read More

Start Your Coding Journey Now!