Given two positive integers N and K. The task is to find the Kth number that can be written as the sum of different non-negative… Read More

# Tag Archives: Maths

Given two strings str1 and str2 of same length N, the task is to check if there exists any permutation possible in any of the… Read More

Given an array arr[] of N integers, the task is to find the minimum number of the moves needed to sort the array in ascending… Read More

Given an array arr[ ] of size N and an integer p, the task is to find maximum possible value of rightmost element of array… Read More

Given an array arr[] of N integers, the task is to find the number of unordered pairs (i, j) in the array such that the… Read More

Given an integer X, D and T, the task is to check if it is possible to reduce X to 0 in exactly T moves.… Read More

This article is focused on discussing the proof that there is no rational number whose square is 2. Before starting the proof, let’s get familiar… Read More

Given an integer N, the task is to print all possible Full Binary Trees with N nodes. The value at the nodes does not contribute… Read More

Given two integers A and B, the task is to find the minimum number of moves needed to make A equal to B by incrementing… Read More

Given an unweighted and undirected graph consisting of N nodes and two integers a and b. The edge between any two nodes exists only if… Read More

Given a string, str of length N and a character X, the task is to find the maximum count of characters X that are to… Read More

Given an array A[] and a positive integer X. The task is to find the absolute difference between the floor of the total sum divided… Read More

Given a positive integer N, the task is to find the largest positive number made up of distinct digits having the sum of its digits… Read More

Given four integers a, b, c, and d, which represents the coefficient of the equation of the plane ax + by + cz + d… Read More

Given four integers a, b, c and d, representing coefficients of a straight line with equation (ax + by + c = 0), the task… Read More