## Search element in a Spirally sorted Matrix

Given a spirally sorted matrix with N * N elements and an integer X, the task is to find the position of this given integer… Read More »

- Binary Search a String
- Binary Search (bisect) in Python
- Longest Subarray with Sum greater than Equal to Zero
- Binary Search In JavaScript
- Meta Binary Search | One-Sided Binary Search
- Distribute N candies among K people
- Number of subarrays have bitwise OR >= K
- Kth Smallest sum of continuous subarrays of positive numbers
- Minimum in an array which is first decreasing then increasing
- Search element in a Spirally sorted Matrix
- Program to find Nth term divisible by a or b
- Finding Floor and Ceil of a Sorted Array using C++ STL
- Minimum K such that every substring of length atleast K contains a character c
- Search in a sorted 2D matrix (Stored in row major order)
- Find if array has an element whose value is half of array sum
- Find the maximum possible value of the minimum value of modified array
- Count sub-arrays whose product is divisible by k
- Queries to check if a number lies in N ranges of L-R
- Minimum number N such that total set bits of all numbers from 1 to N is at-least X
- Number of anomalies in an array
- Count numbers < = N whose difference with the count of primes upto them is > = K
- Count numbers in a range having GCD of powers of prime factors equal to 1
- Floor of every element in same array
- Maximize the product of four factors of a Number
- Find element position in given monotonic sequence
- Count of Numbers such that difference between the number and sum of its digits not less than L
- Find minimum speed to finish all Jobs
- Ceiling of every element in same array
- Lower Insertion Point
- Count elements such that there are exactly X elements with values greater than or equal to X

Given a spirally sorted matrix with N * N elements and an integer X, the task is to find the position of this given integer… Read More »

Given a sorted array, the task is to find the floor and ceil of given numbers using STL. Examples: Input: arr[] = {1, 2, 4,… Read More »

Given a Natural number N and a whole number L, the task is to find the count of numbers, smaller than or equal to N,… Read More »

Given N candies and K people. In the first turn, the first person gets 1 candy, the second gets 2 candies, and so on till… Read More »

Given a number X, the task is to find the minimum number N such that total set bits of all numbers from 1 to n… Read More »

Given an array arr[] and an integer K, the task is to count the number of sub-arrays having bitwise OR ≥ K. Examples: Input: arr[]… Read More »

Given an array of size and a number . The task is to modify the given array such that: The difference between the sum of… Read More »

Given a string S containing lowercase latin letters. A character c is called K-amazing if every substring of S with length atleast K contains this… Read More »

Given an array of N integers where array elements form a strictly decreasing and increasing sequence. The task is to find the smallest number in… Read More »

Given an array arr[] of n sorted integer elements and an integer X, the task is to find the lower insertion point of X in… Read More »

Given a range represented by two positive integers L and R. The task is to count the numbers from the range having GCD of powers… Read More »

Given two positive integers N and K, the task is to count all the numbers that satisfy the following conditions: If the number is num,… Read More »

Given a sorted array of String and a String x, find index of x if it is present in the array. Examples: Input : arr[]… Read More »

Given an array of integers, find the closest smaller or same element for every element. If all elements are greater for an element, then print… Read More »