Find Minimum in Rotated Sorted Array
Implement a function that finds the minimum element in a rotated sorted array of distinct integers in O(log n) time.
Koko Eating Bananas
Given piles of bananas and hours, find the minimum integer eating speed Koko needs to finish all piles within H hours.
Magnetic Force Packages
Given basket positions and k balls, find the largest possible minimum distance between any two balls.
Minimum Speed to Arrive on Time
Given commute distances and a time limit, compute the minimum integer speed so you arrive on time.
Minimum Days to Make Bouquets
Given bloomDay per flower, find the minimum day to make m bouquets each needing k adjacent flowers.
Minimum Limit of Balls in a Bag
Given an array of bag sizes and a number of allowed splits, find the minimum possible maximum bag size.
Showing 1–6 of 6 challenges · Binary Search
Binary Search — Python coding challenges
What you will find here
This page lists binary search challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.