Tag Archives: Binary Search

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
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 an array arr[] of length N (1â‰¤ arr[i] â‰¤ N) and an integer K. The task is to find the largest median of anyâ€¦ 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