Skip to content

Category Archives: Searching

Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… 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 two arrays X[] and Y[] of size N, the task is to find the longest subarray in X[] containing only unique values such that… 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 of strings arr[], the task is to find the smallest string which contains all the characters of the given array of strings.… Read More

Start Your Coding Journey Now!