Beyond CTCI
HomeCoursesProblems
Back to Courses
Course

Binary Search

Master the fundamental technique for searching and problem solving

Course Content
  • Course Overview
  • Binary Search Fundamentals
    • Binary Search Motivations
    • Transition Point Recipe Overview and Analysis
    • Interview Tips: Validation and Drawing Advice
  • Binary Search Lesson Practice
    • CCTV Footage
    • Valley bottom
    • Two-Array Two-sum
    • Target count divisible by K
    • Race overtaking
    • Search in sorted grid
    • Search in huge array
    • Min Subarray Sum-Split
    • Water Refilling
    • Min Pages Per Day
    • Tide Aerial View
  • Binary Search Questions
    • Cocoa eating bananas
    • Median in two sorted arrays
Made with ♥ by the Beyond CTCI team
©2025 All rights reserved
  1. Binary Search
  2. Binary Search Questions
  3. Cocoa eating bananas

Cocoa eating bananas

Practice problem: Cocoa eating bananas

PreviousBinary Search Questions
NextMedian in two sorted arrays