Skip to content

Category Archives: Mathematical

Given a number N, the task is to check whether the digits of the number are increasing and decreasing alternatively. If the number of digits… Read More
Given a 32-bit integer N. The task is to reverse N, if the reversed integer overflows, print -1 as the output. Examples Input: N =… Read More
Given a string str of size N, containing ‘ ‘, ‘.’, ‘-‘, ‘+’, and [‘0’-‘9’], the task is to find the valid integer from this… Read More
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

Start Your Coding Journey Now!