Longest subarray in which all elements are a factor of K
Given an array A[] of size N and a positive integer K, the task is to find the length of the longest subarray such that… Read More »
Given an array A[] of size N and a positive integer K, the task is to find the length of the longest subarray such that… Read More »
Given a 2D matrix mat[][] of size N * M and a positive integer K, the task is to find the area of the smallest… Read More »
Given an array arr[] of size N and an integer K, the task is to count the number of subsets from the given array with… Read More »
Given a binary string S of length N, the task is to check if the decimal representation of the binary string is divisible by 9… Read More »
Given the integers N, K and M, the task is to find the Kth number greater than N whose sum of digits is divisible by… Read More »
Given a matrix mat[][] of dimensions N * M, the task is to print the maximum number of trailing zeros that can be obtained in the… Read More »
Given an integer X, the task is to count the total number of three-digit numbers having difference X with its reverse. If no such number… Read More »
Given two integers L and R, the task is to count the number of full prime numbers that are present in the given range. A… Read More »
Given an array arr[] consisting of N integers, the task is to check if it is possible to divide the entire array into pairs such… Read More »
Given an array, arr[] of size N and an integer K, the task is to find the length of the longest subsequence from the given… Read More »
Given an integer K and a numeric string str, the task is to find the longest subsequence from the given string which is divisible by… Read More »
Given an array arr[] consisting of N positive integers, the task is to find a subarray of length K such that concatenation of each element… Read More »
Given two integers N and K, the task is to count all N digits numbers whose sum of digits is divisible by K. Examples: Input:… Read More »
Given an integer N, the task is to reduce the number and form a key by following the operations given below: Extract the Most Significant… Read More »
Given an array arr[], of size N and a positive integer K, the task is to find a subarray of size K whose elements can… Read More »