## Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition

Given N points in 2 dimensional space. The task is to count the number of triplets pairs (A, B, C) such that point B is… Read More »

- Sets of pairs in C++
- Maximum of all Subarrays of size k using set in C++ STL
- How to delete last element from a set in C++
- Find Maximum and Minimum element in a Set in C++ STL
- Print Minimum of all Subarrays using set in C++ STL
- Maximum value of XOR among all triplets of an array
- Closest greater or same value on left side for every element in array
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Queries to add, remove and return the difference of maximum and minimum.
- Smallest Greater (than S) String of length K whose letters are subset of S
- Longest subarray with only one value greater than k
- Count pairs from two arrays whose modulo operation yields K
- Print all integers that are sum of powers of two given numbers
- set operator= in C++ STL
- set get_allocator() in C++ STL
- Minimum Numbers of cells that are connected with the smallest path between 3 given cells
- How to traverse a C++ set in reverse direction
- Minimum array elements to be changed to make it a Lucas Sequence
- How to delete an element from the Set by passing its value in C++
- Queries on insertion of an element in a Bitonic Sequence
- How to delete a range of values from the Set using Iterator

Given N points in 2 dimensional space. The task is to count the number of triplets pairs (A, B, C) such that point B is… Read More »

Given an array of size N and an integer K, the task is to find the maximum for each and every contiguous sub-array of size… Read More »

Given three non-negative integers x, y and bound, the task is to print all the powerful integer ≤ bound in sorted order. A powerful integer… Read More »

Given a Set, the task is to find the maximum and minimum element of this set in C++ STL. Examples: Input: set={1, 6, 15, 10,… Read More »

Given a Set, the task is to remove the last element from this Set in C++. Examples: Input: set = [10 20 30 70 80… Read More »

Given a Set, the task is to delete a range of values from this Set using Iterator. Example: Input: set = [10 20 30 40… Read More »

Given coordinates of 3 cells (X1, Y1), (X2, Y2) and (X3, Y3) of a matrix. The task is to find the minimum path which connects… Read More »

Given a string S of length N consisting of lowercase English letters and an integer K. Find the lexicographically smallest string T of length K,… Read More »

Given a Set, the task is to traverse this Set in reverse order. Examples: Input: set = [10 20 30 70 80 90 100 40… Read More »

Given an array of integers, find the closest (not considering distance, but value) greater or same value on left of every element. If an element… Read More »

Given an integer and two arrays and , the task is to count the total pairs (formed after choosing an element from and another from… Read More »

Given an array with N distinct elements. The task is to find the minimum number of elements to be changed in the array such that,… Read More »

Given an array of integers ‘arr’, the task is to find the maximum XOR value of any triplet pair among all the possible triplet pairs.… Read More »

Given an array of size N and an integer K, find the minimum for each and every contiguous subarray of size K. Examples: Input :… Read More »