## Minimum cost to buy N kilograms of sweet for M persons

Given an array of n size contains the cost of sweets in such a way that that sweet[i] is the cost of i sweets. The… Read More »

- Make all numbers of an array equal
- Sum of XOR of all subarrays
- Nth number whose sum of digit is multiple of 10
- Count common characters in two strings
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Sort an array without changing position of negative numbers
- Given two arrays count all pairs whose sum is an odd number
- Operations required to make the string empty
- Java ArrayList to print all possible words from phone digits
- Find minimum difference between any two elements | Set 2
- Interactive Problems in Competitive Programming
- Check whether two strings contain same characters in same order
- Program to find the kth character after decrypting a string
- Find two numbers whose divisors are given in a random order
- Sum of bitwise AND of all subarrays
- Total number of possible Binary Search Trees using Catalan Number
- Count of all possible values of X such that A % X = B
- Find sub-arrays from given two arrays such that they have equal sum
- Maximize the happiness of the groups on the Trip
- Find the minimum number of operations required to make all array elements equal
- Find the number of distinct pairs of vertices which have a distance of exactly k in a tree
- Check if a Queen can attack a given cell on chessboard
- Spanning Tree With Maximum Degree (Using Kruskal's Algorithm)
- Maximum subarray sum by flipping signs of at most K array elements
- Find the minimum number of elements that should be removed to make an array good
- Find the minimum number of preprocess moves required to make two strings equal
- Count how many times the given digital clock shows identical digits
- Shortest path on a Square
- Replace array elements by sum of next two consecutive elements
- Number of ways of scoring R runs in B balls with at most W wickets

Given an array of n size contains the cost of sweets in such a way that that sweet[i] is the cost of i sweets. The… Read More »

Given a binary string str, the task is to print the numbers of steps required to convert it to one by the following operations: If… Read More »

Given an array of numbers. The task is to check if it is possible to arrange all the numbers in a circle so that any… Read More »

Given an equation of the form: a + b = c Out of which any one of the terms , or is missing. The task… Read More »

Given an integer N. The task is to find all factors of N and print the product of four factors of N such that: Sum… Read More »

Given the coordinates of 5 2-dimensional points, check if they form a closed T shape. Print ‘Yes’ if they form T shape and ‘No’ otherwise.… Read More »

Given two arrays and with n elements each. The task is to make these two arrays identical i:e, for each , we want to make… Read More »

Given an integer N, the task is to find the maximum product of A, B, C, D such that below conditions satisfy: N%A ==0 &&… Read More »

We are given a recursive function that describes Nth terms in form of other terms. In this article we have taken specific example. Now you… Read More »

Let us first know about competitive programming! Competitive Programming Competitive programming is a brain game which take place on the Internet or a local network… Read More »

We have been given N balloons, each with a number of coins associated with it. On bursting a balloon i, the number of coins gained… Read More »

Given a number where, . The task is to find the minimum number of elements to be deleted in between to such that the XOR… Read More »

It is fun and fruitful to participate in coding challenges and hackathons offline or online. There are lots of prices and incentives that you can… Read More »

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 »