DEV Community

Cover image for Day 26: Unveiling the Magic of INTRODUCTION To Binary Search in Java, C++, Python πŸš€
Nitin-bhatt46
Nitin-bhatt46

Posted on

Day 26: Unveiling the Magic of INTRODUCTION To Binary Search in Java, C++, Python πŸš€

DAY - 26

For more Tech content Join us on linkedin click here

All the code snippets in this journey are available on my GitHub repository. πŸ“‚ Feel free to explore and collaborate: Git Repository

Today’s Learning :-

BINARY SEARCH QUESTION PRACTISE :-

Q1. With Binary Search, finding the number which is not present in the array like if the array doesn't have number 5 gives output greater than 5.

Arr = 1,2,3,6,7,8
Find = 5
Output = 6.

Q2. find the square root of the number.

Input = 100
Output = 10

Q3. Peak Index in Mountain

Arr = 2,4,6,8,10,8,5

Output = 10

πŸ™ Thank you all for your time and support! πŸ™
Don't forget to catch me daily for the latest updates on my programming journey! Let's continue to learn, grow, and inspire together! πŸ’»βœ¨

Top comments (0)