## Maximum Possible Product in Array after performing given Operations

Given an array with size N. You are allowed to perform two types of operations on the given array as described below: Choose some position… Read More »

- Practice for cracking any coding interview
- How to get rid of Java TLE problem
- How can one become good at Data structures and Algorithms easily?
- Burst Balloon to maximize coins
- Understanding The Coin Change Problem With Dynamic Programming
- Subset array sum by generating all the subsets
- Reach the numbers by making jumps of two given lengths
- Sum of similarities of string with all of its suffixes
- Make all numbers of an array equal
- Maximize the total profit of all the persons
- Find triplets in an array whose AND is maximum
- Some useful C++ tricks for beginners in Competitive Programming
- Length of the longest Subarray with only Even Elements
- Check if a number is perfect square without finding square root
- Print matrix in snake pattern from the last column
- Sort the array of strings according to alphabetical order defined by another string
- Python in Competitive Programming
- Sum of the first N Prime numbers
- How to read Competitive Programming Questions?
- How can competitive programming help you get a job?
- Check if it is possible to reach a number by making jumps of two given length
- Minimum changes required to make two arrays identical
- Number of array elements derivable from D after performing certain operations
- C++: Methods of code shortening in competitive programming
- Sum of the multiples of two numbers below N
- Number of quadrilaterals possible from the given points
- Minimum number of increasing subsequences
- Find two numbers whose divisors are given in a random order
- Minimum number of sets with numbers less than Y
- Smallest Pair Sum in an array

Given an array with size N. You are allowed to perform two types of operations on the given array as described below: Choose some position… Read More »

Given a number N. The task is to find the sum of the decimal equivalent of all the pairs formed from the binary representation of… Read More »

Given a string str. The task is to find all possible number of strings that can be obtained by replacing the “$” with alphabets in… Read More »

It happens many times that you have written correct Java code with as much optimization as needed according to the constraints. But, you get TLE… Read More »

Given an integer N greater than 2, the task is to print any combination of a, b and c such that: a + b +… Read More »

Given an array arr[] of N positive integers. The task is to write a program to count the number of prime elements in the given… Read More »

Given an array. The task is to count the possible pairs which can be formed using the elements of the array where both of the… Read More »

Given a range i.e. L and R, the task is to find if we can form pairs such that GCD of every pair is 1.… Read More »

Given an array of integers.Let us say P is the product of elements of the array. Find the number of of distinct prime factors of… Read More »

Coding questions in this article are difficulty wise ordered. The idea of this post is to target two types of people. Competitive Programming Preparation (For… Read More »

Given two numbers sa and sb represented as strings, find ab % MOD where MOD is 1e9 + 7. The numbers a and b can… Read More »

Given two binary strings s1 and s2. The XOR of them is X, the task is to find the number of ways to swap two-bit… Read More »

Given four points (x, y) in the cartesian coordinate. Find the possible no of quadrilaterals than can be formed by joining all the four points.… Read More »

Competitive Programming is considered as a sport in the field of computer science. The culture of this sport is growing day by day and a… Read More »

In 2017, when ACM allowed Python support for its prestigious competition, the ACM ICPC, a whole new community became interested in the sport of competitive… Read More »