Problem Statement: Given a sorted binary array (consisting of only 0’s and 1’s), the task is to find the total

Continue reading# Category: Binary search

## 1st occurrence in a sorted array

Given a sorted array of N integers, write a program to find the index of the first occurrence of the

Continue reading## Search in an infinite sorted array

Problem Statement: “Given an array containing infinite sorted integers and an element, write a program to find the position of

Continue reading## Time Complexity of binary search using Recursion Tree

What is Binary Search? Binary Search is the shortest way of finding the element in an array (Assuming – all

Continue reading## Count Occurrences in Sorted Array

Problem Statement: You are given a sorted array containing N integers and a number X, you have to find the

Continue reading## Operations on Arrays

What is an array? An array is a data structure that stores homogeneous/same data type values in it, and the

Continue reading## Binary Search : Analysis

Binary Search : Space/Time Complexity Analysis of Binary Search Binary search is one of the searching algorithms which falls into

Continue reading## Binary Search : Explained

In this article we will learn about one of most easy yet important searching algorithm “Binary Search”. Let’s consider this

Continue reading