Limited Period Offer : 20% Discount on online/offline courses, for more details call/whatsapp

Binary Search top interview questrions.

1 min read
1 year ago By Aniket Prajapati

Binary Search Top interview questions.

(1) Binary search - https://www.geeksforgeeks.org/binary-search/

(2) 1st and last occurance of an element- https://www.geeksforgeeks.org/find-first-and-last-positions-of-an-element-in-a-sorted-array/

(3) Count of element in a sorted array- https://www.geeksforgeeks.org/count-number-of-occurrences-or-frequency-in-a-sorted-array/

(4) No. of times array is rotated-https://www.geeksforgeeks.org/find-rotation-count-rotated-sorted-array/

(5) Find element in a rotated sorted array-https://www.geeksforgeeks.org/search-an-element-in-a-sorted-and-pivoted-array/

(6) Search in a nearly sorted array- https://www.geeksforgeeks.org/search-almost-sorted-array/

(7) Floor/Ceil of an element-https://www.geeksforgeeks.org/find-floor-ceil-unsorted-array/

(8) Find position of element in infinite sorted array-https://www.geeksforgeeks.org/find-position-element-sorted-array-infinite-numbers/

(9) Min diff element in infinite sorted array - https://www.geeksforgeeks.org/find-minimum-difference-pair/

(10) Search in row & column wise sorted array - https://www.geeksforgeeks.org/search-in-row-wise-and-column-wise-sorted-matrix/

(11) Find element in soretd array that appear only once - https://leetcode.com/problems/single-element-in-a-sorted-array/

(12) Allocate minimum number of pages - https://practice.geeksforgeeks.org/problems/allocate-minimum-number-of-pages0937/1

(13) Bitonic array maximum element - https://practice.geeksforgeeks.org/problems/maximum-value-in-a-bitonic-array3001/1

(14) Search in a Bitonic array - https://www.geeksforgeeks.org/find-element-bitonic-array/

Jun 20, 2023 21:13 Back to Articles

Other Articles

Arrays Introduction

An array is a continuous block of memory location which can store data of same datatype.

1 year ago By Aniket Prajapati
Best Websites for Building Resumes

In this article, we will explore five top websites that can assist you in crafting a compelling resume to increase your chances of getting shortlisted by companies.

1 year ago By Mitali Gupta
React State Management Made Easy: Zustand and Redux Explained React State Management Made Easy: Zustand and Redux Explained

In this article, we will discover two powerful state management libraries for React: Zustand and Redux. Also explore their unique approaches, advantages, and use cases, to simplify and optimize your application's state handling. Choose the best fit for your project's needs and boost development efficiency with these popular solutions.

1 year ago By Mitali Gupta
Creating a Spinner Using Pure HTML and CSS Creating a Spinner Using Pure HTML and CSS

In this article, we will explore how to create a stylish spinner using pure HTML and CSS. The animated circle rotates indefinitely, offering visual feedback for ongoing processes on your web pages.

1 year ago By Mitali Gupta