Books Allocation Problem Using Binary Search | FREE DSA Course in JAVA | Lecture 59

  Рет қаралды 5,996

TAP ACADEMY

TAP ACADEMY

Күн бұрын

We are going to solve an advanced binary search question asked by companies like Google.
The question is popularly known as the book allocation problem.
In this question, you are given an array of books where each element denotes the number of pages in a book.
Now you are given a value b which is the number of students between whom you have to allocate the book such that the student who gets the maximum pages should be the minimum of all maximum possible cases.
There are some other conditions associated with the program:-
1. One book can be allocated to one student only
2. Each student should get at least one book
4. Books should be allocated in a continuous manner
4. All books should be allocated
Let's see how this program can be solved using the binary search algorithm and wheat make this book allocation program is special program that it is being asked in companies like Google.
For more information, fill out this form: forms.gle/8eiUmM92Fx563Aen9
or call us at 8884881203
Facebook: / thetapacademy
Instagram: / tapacademy_online
Linkedin: / 73820805
Website: www.thetapacademy.com​

Пікірлер: 14
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
Elon Musk on xAI: We will win | Lex Fridman Podcast
27:01
Lex Clips
Рет қаралды 167 М.
Pain to Purpose : Art of handling failures & Pain | Bhagavad Gita | Sri Sampati Dasa
54:53
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН