# 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 A[] of length N, where N is an even number, the task is to answer Q independent queries where each query consistsâ€¦ Read More
Given an array A[] of length N, where N is an even number, the task is to answer Q independent queries where each query consistsâ€¦ Read More
Given an array A[] of length N, where N is an even number, the task is to answer Q independent queries where each query consistsâ€¦ Read More
Given an array A[] of length N, where N is an even number, the task is to answer Q independent queries where each query consistsâ€¦ 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