## Count the maximum number of elements that can be selected from the array

Given an array arr[], the task is to count the maximum number of elements that can be selected from the given array following the below… Read More »

- Amazon Internship Interview Experience
- k-th missing element in an unsorted array
- Sort an array without changing position of negative numbers
- Find the longest string that can be made up of other strings from the array
- Count the triplets such that A[i] < B[j] < C[k]
- Comparison among Bubble Sort, Selection Sort and Insertion Sort
- Two nodes of a BST are swapped, correct the BST | Set-2
- Nagarro Interview Experience Off-campus
- Greatest contiguous sub-array of size K
- Bubble Sort for Linked List by Swapping nodes
- Merge two BSTs with constant extra space
- Maximum water that can be stored between two buildings
- Find a triplet in an array whose sum is closest to a given number
- Keep track of previous indexes after sorting a vector in C++ STL
- Pair with largest sum which is less than K in the array
- Find maximum meetings in one room
- Range Queries to Find number of sub-arrays with a given xor
- Split the array elements into strictly increasing and decreasing sequence
- Count pairs with given sum | Set 2
- Iterative selection sort for linked list
- Find the number of elements greater than k in a sorted array
- Program to print an array in Pendulum Arrangement with constant space
- Sort an array of strings based on the frequency of good words in them
- Maximum Length Chain of Pairs | Set-2
- IntroSort or Introspective sort
- Find minimum changes required in an array for it to contain k distinct elements
- Remove elements to make array sorted
- Divide array into two parts with equal sum according to the given constraints
- Unbounded Fractional Knapsack
- Check whether an array can be made strictly decreasing by modifying at most one element

Given an array arr[], the task is to count the maximum number of elements that can be selected from the given array following the below… Read More »

The human brain can easily process visuals in spite of long codes to understand the algorithms. In this article, Bubble sort visualization has been implemented… Read More »

Given a positive integer N, the task is to find out all the combinations of positive integers that add upto the given integer N. The… Read More »

Given three array A[], B[] and C[] of N integers each. The task is to find the count of triplets (A[i], B[j], C[k]) such that… Read More »

Given an array arr[] of positive integers, the task is to find whether it is possible to make this array strictly increasing by modifying atmost… Read More »

Given a matrix mat[][], the task is to check if the given matrix is strictly increasing or not. A matrix is said to be strictly… Read More »

Given an integer array arr[], the task is to check if that array contains all the divisor of some integer. Examples: Input: arr[] = {… Read More »

Given an alphanumeric string str, the task is to sort the string in such a way that if a position is occupied by an alphabet… Read More »

Given an array arr[] of N integers. The integers represent all the divisors of a number X except 1 and X itself. The task is… Read More »

Given an array arr[] of N distinct integers, the task is to find the maximum elements in an interval [L, R] such that the interval… Read More »

Given an array arr[] of N positive integers and a non negative integer K. The task is to delete exactly K sub-arrays from the array… Read More »

Given an array arr[] of positive integers, the task is to sort the array in decreasing order of count of set bits in binary representations… Read More »

Given a range [L, R] where 0 ≤ L ≤ R ≤ 108. The task is to find the count of integers from the given… Read More »

Given an array arr[] of integers, the task is to arrange them in a way similar to the to-and-fro movement of a Pendulum without using… Read More »

Odd-Even Transposition Sort is a parallel sorting algorithm. It is based on the Bubble Sort technique, which compares every 2 consecutive numbers in the array… Read More »