## Longest Subsequence with at least one common digit in every element

Given an array. The task is to find the length of the longest subsequence in which all elements must have at least one digit in… Read More »

- Which C++ libraries are useful for competitive programming?
- Must do Math for Competitive Programming
- Breadth First Search without using Queue
- Which Java libraries are useful for competitive programming?
- Minimize the maximum difference between adjacent elements in an array
- Which Python Modules are useful for competitive programming?
- 7 Best Coding Challenge Websites in 2020
- Calculate the Sum of GCD over all subarrays
- Speed up Code executions with help of Pragma in C/C++
- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Writing code faster during Competitive Programming in C++
- Count of subarrays of an Array having all unique digits
- Basic Algorithm Techniques Not Taught in Academics
- Setting up a C++ Competitive Programming Environment
- Sum of GCD of all possible sequences
- I Can't Use Logic In Programming. What Should I Do?
- Default values in a Map in C++ STL
- Move all zeroes to end of array using Two-Pointers
- Logarithm tricks for Competitive Programming
- Maximum LCM among all pairs (i, j) from the given Array
- Geeks Coding Challenge [GCC 2019] - A Three Day Coding Challenge By GeeksforGeeks
- How To Approach A Coding Problem ?
- Count of subarrays which start and end with the same element
- Minimize the maximum difference of adjacent elements after at most K insertions
- Submatrix of given size with maximum 1's
- Longest Mountain Subarray
- Find last remaining element after reducing the Array
- Find maximum subset sum formed by partitioning any subset of array into 2 partitions with equal sum
- Maximum size of square such that all submatrices of that size have sum less than K
- Minimum window size containing atleast P primes in every window of given range

Given an array. The task is to find the length of the longest subsequence in which all elements must have at least one digit in… Read More »

Given two circles and a length K. Find whether we can join two points (one on perimeter of each circle), so that distance between the… Read More »

Given a set of ‘N’ digits. The task is to find the maximum integer that we can make from these digits. The resultant number must… Read More »

Given a number N containing digits from 1 to 9 only. The task is to generate a new number using the number N such that… Read More »

Given a positive integer n, the task is to check if it is Euclid Number or not. Print ‘YES’ if the given number is Euclid… Read More »

Given a positive integer n, the task is to check if it is a Wagstaff prime or not. Print ‘YES’ if the given number is… Read More »

Given a number N. The task is to count the minimum number of digits to be removed from the number so that no two consecutive… Read More »

Given two integers , . Find the number of rectangles of size 2*1 can be placed inside a rectangle of size n*m. Note: No two… Read More »

Given four numbers x, y, z, n. The task is to find the number of solutions for the equation x + y + z <=… Read More »

Given that all the angles of a quadrilateral are in AP having common difference ‘d’, the task is to find all the angles. Examples: Input:… Read More »

Given an integer ‘n’, the task is to find the sum of first ‘n’ prime numbers. First few prime numbers are: 2, 3, 5, 7,… Read More »

Given a string which consists of either ‘.’ or any number. A ‘.’ in the string means that the cell is empty and if there… Read More »

Given the value ‘N’ which is length of a number ‘A’. Your task is to convert the digits such that at least ‘K’ times in… Read More »

Given an array of size N and a sum, the task is to check whether some array elements can be added to sum to N… Read More »

Given a set Sn that represents a finite set {1, 2, 3, ….., n}. Zn denotes the set of all subsets of Sn which contains… Read More »