## Find the Rotation Count in Rotated Sorted array

Consider an array of distinct numbers sorted in increasing order. The array has been rotated (clockwise) k number of times. Given such an array, find… Read More »

- Quick Sort vs Merge Sort
- Find the Missing Number in a sorted array
- Modular exponentiation (Recursive)
- Largest perfect square number in an Array
- Dynamic Programming vs Divide-and-Conquer
- Binary Search In JavaScript
- Binary Search (bisect) in Python
- Kth Smallest sum of continuous subarrays of positive numbers
- Find Nth term (A matrix exponentiation example)
- Minimum in an array which is first decreasing then increasing
- Queries to check whether a given digit is present in the given Range
- 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)
- Java 8 | Arrays parallelSort() method with Examples
- Range and Update Sum Queries with Factorial
- Minimum operations of the given type required to make a complete graph
- Cut all the rods with some length such that the sum of cut-off length is maximized
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Minimum number N such that total set bits of all numbers from 1 to N is at-least X
- Search element in a Spirally sorted Matrix
- First strictly greater element in a sorted array in Java
- Numbers that are bitwise AND of at least one non-empty sub-array
- Find element position in given monotonic sequence
- First strictly smaller element in a sorted array in Java
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Generate a random permutation of elements from range [L, R] (Divide and Conquer)
- Number of ways to divide a given number as a set of integers in decreasing order
- Search equal, bigger or smaller in a sorted array in Java

Consider an array of distinct numbers sorted in increasing order. The array has been rotated (clockwise) k number of times. Given such an array, find… Read More »

Given a matrix of N rows and M columns, the task is to find the minimum absolute difference between any of the two adjacent elements… Read More »

You are given a bitonic sequence, the task is to find Bitonic Point in it. A Bitonic Sequence is a sequence of numbers which is… Read More »

Given a sorted array of n elements containing elements in range from 1 to n-1 i.e. one element occurs twice, the task is to find… Read More »

Given a sorted array and a value x, the floor of x is the largest element in array smaller than or equal to x. Write… Read More »

Given a number n, find the cube root of n. Examples: Input: n = 3 Output: Cubic Root is 1.442250 Input: n = 8 Output:… Read More »

Given an sorted array of positive integers, count number of occurrences for each element in the array. Assume all elements in the array are less… Read More »

Given a set of strings, find the longest common prefix. Examples: Input : {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output : “gee” Input : {“apple”, “ape”, “april”}… Read More »

Given three numbers x, y and p, compute (xy) % p. Examples : Input: x = 2, y = 3, p = 5 Output: 3… Read More »

Given an integer x, find square root of it. If x is not a perfect square, then return floor(√x). Examples : Input: x = 4… Read More »

Given a sorted array in which all elements appear twice (one after one) and one element appears only once. Find that element in O(log n)… Read More »

1. Machine Coding: Two players, two field; and have multiple ships located in their fields. They are guessing each others ship position and hitting. Tell… Read More »

Tower of Hanoi is a mathematical puzzle. It consists of three poles and a number of disks of different sizes which can slide onto any… Read More »

Given n rectangular buildings in a 2-dimensional city, computes the skyline of these buildings, eliminating hidden lines. The main task is to view buildings from… Read More »

Given a n by n board where n is of form 2k where k >= 1 (Basically n is a power of 2 with minimum… Read More »