Skip to content

Category Archives: Mathematical

Given an integer N and an integer D, the task is to reach N from 1 in minimum moves by either adding 1 or doubling… Read More
Given a number N, the task is to find the sum of the below series till N terms. 1+(1+2)/2+(1+2+3)/3+… till N terms Examples: Input: N… Read More
Given an array of strings arr[] of size N and an encrypted string str, the task is to find the correct string from the given… Read More
Given three integers M, N and K, the task is to count all the possible paths from the cell (0, 0, 0) to cell (M-1,… Read More
Given an array arr[] containing N integers. In each operation, a minimum integer is chosen from the array and deleted from the array after subtracting… Read More
Given a string str of N characters, the task is to find the lexicographically smallest string that can be formed by concatenating any prefix and… Read More
Given array arr containing N integers. the task is to find the maximum number of unique elements in the array if each element in the… Read More
Given an array arr[]. The task is to minimize the number of removals to make all the elements in arr[] consecutive.  Examples Input: arr[] =… Read More
Given an array arr[] of size N where arr[i] is in the form [xi, yi] denoting a point (xi, yi) on a 2D plane. The… Read More
Given a number N, the task is to find the maximum number of steps convert N to zero where in each step a number m… Read More
Given integers N and K. The task is to construct an array of size N such that sum of all elements is divisible by K… Read More

Start Your Coding Journey Now!