Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

BinarySearch_Java-All-hit-questions-

In this repository, I have tried to cover all hit questions on Binary Search topic. I took reference from Aditya Verma's Binary search playlist. I tried to explain all codes with the help of comments. This repo contains all the codes in Java programming.

Problems Covered :

  1. Binary search implementation (Leetcode_704_Easy : https://leetcode.com/problems/binary-search/)
  2. Allocate minimum number of pages (GFG_Hard : https://practice.geeksforgeeks.org/problems/allocate-minimum-number-of-pages0937/1)
  3. Binary search for descending order array
  4. Ceil of element in sorted array
  5. Floor of element in sorted array
  6. Count of number in sorted array
  7. Find element in rotated sorted array (Leetcode_33_Medium : https://leetcode.com/problems/search-in-rotated-sorted-array/)\
  8. First and last index of key element (Leetcode_34_Medium : https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
  9. Index of first 1 in infinite sorted array (Coding Ninjas : https://www.codingninjas.com/codestudio/problem-details/search-in-infinite-sorted-0-1-array_696193)
  10. Minimum difference element in a sorted array
  11. Next alphabetic order
  12. Number of times a sorted array is rotated (GFG_Easy : https://practice.geeksforgeeks.org/problems/rotation4723/1)
  13. Peak element (Leetcode_162_Medium : https://leetcode.com/problems/find-peak-element/)
  14. Search in a nearly sorted array
  15. Search in bitonic array
  16. Search in infinite sorted array
  17. Search row-wise and column-wise 2D sorted array (Leetcode_74_Medium : https://leetcode.com/problems/search-a-2d-matrix/)
  18. Search when sorting order is not known

About

In this repository, I have tried to cover all hit questions on Binary Search topic. I took reference from Aditya Verma's Binary search playlist.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages