# Category Archives: Searching

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 array of positive integers. We are required to write a program to print the minimum product of any two numbers of the given… Read More
Given an array of positive integers. We are required to write a program to print the minimum product of any two numbers of the given… 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 array arr[] of N integers, the task is to find the count of pairs of adjacent elements whose sum is even where each… 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
Given an array of strings arr[] of size N where each string consists only of lowercase English letter. The task is to return the last… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More