# Category Archives: Arrays

## Count pair of strings whose concatenation has every vowel

Given an array arr[] of N strings. The task is to find the count of all possible pairs of strings such that their concatenations has… Read More »

## Closest pair in an Array such that one number is multiple of the other

Given an array arr[] of integers of size N, the task is to find the closest pair in the given array such that one element… Read More »

## Minimum LCM of all subarrays of length at least 2

Given an array arr[] of N positive integers. The task is to find the minimum LCM of all subarrays of size greater than 1. Examples: … Read More »

## Largest subsequence such that all indices and all values are multiples individually

Given an array arr[] of N positive integers, the task is to find the largest strictly increasing subsequence of arr[] such that the indices of… Read More »

## Difference between Array, Queue and Stack

Array: An Array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together.… Read More »

## Maximum profit by buying and selling a stock at most twice | Set 2

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 »

## Convert string to integer without using any in-built functions

Given a string str, the task is to convert the given string into the number without using any inbuilt function. Examples:  Input: str = “985632”… Read More »

## Permutation of Array such that sum of adjacent elements are not divisible by 3

Given an array arr[] of positive integers, the task is to find the permutation of the array such that the sum of adjacent elements is… Read More »

## Maximum sum of values in a given range of an Array for Q queries when shuffling is allowed

Given an array arr[] and K subarrays in the form (Li, Ri), the task is to find the maximum possible value of  . It is… Read More »

## Check if ceil of number divided by power of two exist in sorted array

Given a sorted array arr[] and an integer K, the task is to check if there exists a ceil of number K divided by some… Read More »

## Length of longest subsequence in an Array having all elements as Nude Numbers

Given an array arr[] of N positive integers, the task is to print the length of the longest subsequence of the array such that all… Read More »

## What are the C programming concepts used as Data Structures

Data Types Data-type in simple terms gives us information about the type of data. Example, integer, character, etc. Data-types in C language are declarations for the… Read More »

## Array of Structures vs. Array within a Structure in C/C++

Array within a Structure A structure is a data type in C/C++ that allows a group of related variables to be treated as a single… Read More »

## Maximum score of deleting an element from an Array based on given condition

Given an array arr[], the task is to find the maximum score of deleting an element where each element of the array can be deleted… Read More »

## Count of numbers upto N having absolute difference of at most K between any two adjacent digits

Given an integer N, the task is to count the numbers up to N having an absolute difference of at most K between any two… Read More »