Minimum number of rabbits that must be present in the forest
There are some colored rabbits in a forest. Given an array arr[] of size N, such that arr[i] denotes the number of rabbits having same… Read More »
There are some colored rabbits in a forest. Given an array arr[] of size N, such that arr[i] denotes the number of rabbits having same… Read More »
Given an array arr[] consisitng of a permutation of first N natural numbers, the task is to find the minimum number of clockwise circular rotations… Read More »
Given two integers N and M and an 2D array arr[], the task is to construct the smallest possible integer of N digits ( without… Read More »
Given an array arr[] representing burst time of N processes scheduled using the Round Robin Algorithm with given quantum time Q. Assuming that all the… Read More »
Given two strings str1 and str2, the task is to check if a string str1 can be converted to string str2 by performing the following… Read More »
Given an array of strings arr[] of size N, the task is to print all the distinct strings present in the given array. Examples: Input:… Read More »
Given an array of strings arr[], consisting of strings made up of lowercase and uppercase letters, the task is to print all the strings from… Read More »
Given a binary matrix, mat[][] of dimensions N * M, the task is to maximize the count of rows consisting only of equal elements by… Read More »
Given an array arr[] of size N, the task is to print the minimum count of equal length subsets the array can be partitioned into… Read More »
Given two positive integers P and Q, the task is to largest divisor of P which is not divisible by Q. Examples: Input: P =… Read More »
Given two strings A and B of length N and M respectively, the task is to find the minimum cost to convert string A to… Read More »
Given string str, the task is to find the minimum count of characters that need to be deleted from the string such that the frequency… Read More »
Given a string S and an integer K, the task is to generate lexicographically the largest string possible from the given string, by removing characters… Read More »
Given an array arr[] consisting of N strings, the task is to modify the array by replacing the duplicate strings by appending ay number such… Read More »
Given an array arr[] consisting of N integers, the task is to count the number of ways to split the array into two subarrays of… Read More »