## Count pairs with given sum | Set 2

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

Given an array arr[] and an integer sum, the task is to find the number of pairs of integers in the array whose sum is… Read More »

Given a string str consisting of uppercase and lowercase characters. The task is to sort uppercase and lowercase characters separately such that if the ith… Read More »

Given an array of N integers, the task is to arrange them in a circular arrangement in such a way that the element is strictly… Read More »

Given a set of product reviews (R) by different customers and a string S containing good words separated by a _, the task is to… Read More »

Given an array arr[] of integers and an integer K, the task is to find the greatest contiguous sub-array of size K. Sub-array X is… Read More »

Given an array of strings arr[], the task is to find the largest string in the array which is made up of the other strings… Read More »

Given an array of pairs of numbers of size N. In every pair, the first number is always smaller than the second number. A pair… Read More »

Given weights and values of n items, the task is to put these items in a knapsack of capacity W to get the maximum total… Read More »

Given an array arr[] of N integers, the task is to sort the array without changing the position of negative numbers (if any) i.e. the… Read More »

Given an array arr[] of N integers and an integer X, the task is to find three integers in arr[] such that the sum is… Read More »

Given an integer array arr[] of length N consisting of both positive and negative integers, the task is to find the number of sub-arrays with… Read More »

Given an integer N and valid subsequences of an array of integers where every element is distinct and from the range [0, N – 1],… Read More »

Given three sorted integer arrays A[], B[] and C[], the task is to find three integers, one from each array such that they sum up… Read More »

Given an integer N, the task is to find the sum of semi-prime numbers which are less than or equal to N. A Semi prime… Read More »

Given a string str and an array of strings arr[], the task is to check if the given string can be formed by any of… Read More »