Day 26: Unveiling the Magic of INTRODUCTION To Binary Search in Java, C++, Python 🚀

RMAG news

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! 💻✨

Leave a Reply

Your email address will not be published. Required fields are marked *