## Check if the rows of a binary matrix can be made unique by removing a single column

Given a binary matrix mat[][] of size M * N. The task is to check whether the row of the matrix will be unique after… Read More »

- Sort an array without changing position of negative numbers
- Nth number whose sum of digit is multiple of 10
- Given two arrays count all pairs whose sum is an odd number
- Find maximum xor of k elements in an array
- Find minimum difference between any two elements | Set 2
- What is Competitive Programming and How to Prepare for It?
- Why Should I Learn Coding?
- Check whether two strings contain same characters in same order
- Total number of possible Binary Search Trees using Catalan Number
- Maximize the happiness of the groups on the Trip
- Find the number of pair of Ideal nodes in a given tree
- Find the minimum number of elements that should be removed to make an array good
- Lexicographically Smallest Topological Ordering
- Sum of digits with even number of 1's in their binary representation
- Find sub-arrays from given two arrays such that they have equal sum
- Count of all possible values of X such that A % X = B
- Equal Sum and XOR of three Numbers
- Check which player visits more number of Nodes
- Find the Nth Mosaic number
- Count of integers in a range which have even number of odd digits and odd number of even digits
- Optimally accommodate 0s and 1s from a Binary String into K buckets
- Check whether a number can be represented as sum of K distinct positive integers
- Longest string in an array which matches with prefix of the given string
- Generate elements of the array following given conditions
- Make the list non-decreasing by changing only one digit of the elements
- Find the maximum possible value of a[i] % a[j] over all pairs of i and j
- Count of strings whose prefix match with the given string to a given length k
- Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
- Find the time which is palindromic and comes after the given time
- Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)

Given a binary matrix mat[][] of size M * N. The task is to check whether the row of the matrix will be unique after… Read More »

Given two integers A and B and an integer N. The task is to find out N prime numbers of the form A + nB… Read More »

Given three integers A, B and C. The task is to count the number of triples (a, b, c) such that a * c >… Read More »

Given an array arr[] of N integers, the task is to find the count of subarrays with positive product. Examples: Input: arr[] = {-1, 2,… Read More »

There are two singly linked lists in a system. By some programming error, the end node of one of the linked list got linked to… Read More »

Given an array arr[] of N integers where every element is from the range [1000, 9999]. The task is to make the array non-decreasing by… Read More »

Given three integers L, R and P where P is prime, the task is to count the number of times P occurs in the prime… Read More »

Given two integers A and B, the task is to find two co-prime numbers C1 and C2 such that C1 divides A and C2 divides… Read More »

Given two very large numbers L and R where L ≤ R, the task is to compute the sum of all the natural numbers from… Read More »

Introduction to interactive problems in competitive programming is already discussed in the previous article. In this article, another problem based on the same concept is… Read More »

Given an array Arr of N integers representing the nodes of a graph. The edges are defined between those pair whose bitwise AND is not… Read More »

Given a queue. The task is to reverse the queue using another another empty queue. Examples: Input: queue[] = {1, 2, 3, 4, 5} Output:… Read More »

Given a string str consisting of lowercase English alphabets, the task is to find the count of substrings that start with “geeks” and end with… Read More »

Given an array of integers A. The task is to minimise the sum of the elements of the array using the following rule: Choose two… Read More »

Given three integers a, b and N where a and b are the first two terms of the XOR Fibonacci series and the task is… Read More »