Given an array arr[] denoting the radius of circular pizzas and an integer N denoting the number of friends. The task is to calculate the… Read More
Tag Archives: Binary Search
Given an array arr[] of N intervals, the task is to calculate the index of the closest interval to the right of each of the… Read More
Given two stacks stack1[] and stack2[] of size N and M respectively and an integer K, The task is to count the maximum number of… Read More
Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form.Examples: Input: arr[] =… Read More
Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form.Examples: Input: arr[] =… Read More
Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form.Examples: Input: arr[] =… Read More
Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form.Examples: Input: arr[] =… Read More
Given an array arr[] of size N. The task is to maximize the minimum value of the array after performing given operations. In an operation,… Read More
Given a sorted array arr[] of size N, the task is to find the number of unique elements in this array. Note: The array is… Read More
Given an array arr[] of size N, the task is to find the minimum number of operations required to make the array a permutation of… Read More
Given two integers N and K, where N represents a diamond pattern with (2 * N) -1 rows, the task is to find the index… Read More
Given an N x M matrix mat[][] where all elements are natural numbers starting from 1 and are continuous except 1 element, find that element.… Read More
Given an ascending sorted array arr[] of size N and an integer K, the task is to partition the given array into K non-empty subarrays… Read More
Given two numbers N and M(M > 1), the task is to find the highest power of M that divides N. Examples: Input: N =… Read More