Given two sorted arrays A[] and B[] consisting of N and M integers respectively, the task is to find the Kth smallest number in the… Read More

# Category Archives: Searching

Given an array arr[] consisting of N integers, the task is to find the maximum count of integers that are binary searchable in the given… Read More

Given two arrays arr1[] and arr2[] of size N and N – 1 respectively. Each value in arr2[] is obtained by adding a hidden value… Read More

Given a sorted array arr[] and a positive integer D, the task is to find the minimum and the maximum number of array elements that… Read More

In this article we will see what is Boolean Expression. Before starting with the topic directly lets us see what is Boolean expression so It… Read More

Given an array arr[] of N positive integers and a range [L, R], the task is to find the maximum subset-sum such that the difference… Read More

Given a sorted array arr[] consisting of N integers, the task is to find the maximum among the count of positive or negative integers in… Read More

Given a queue consisting of the first N natural numbers and queries Query[][] of the type {E, X}, the task is to perform the given… Read More

Given an array arr[] of N integers and a positive integer K, the task is to check if it is possible to divide the array… Read More

Given two integers N and B, the task is to print the maximum index a pointer, starting from 0th index can reach in an array… Read More

Given two arrays arr1[] and arr2[] of pairs of the form {ID, value} of size N and M respectively and an integer target, the task… Read More

Given an array arr[] of N integers representing the position of N points along a straight line and an integer K, the task is to… Read More

Given an array arr[] and two positive integers K and C, the task is to maximize the Kth maximum element obtained after splitting an array… Read More

Given an array of N integers the task is to select K elements out of these N elements in such a way that the minimum… Read More

Given an array arr[] consisting of N positive integers and a positive integer M, the task is to find the smallest possible integer K such… Read More