Given 8 Perl books 17 Python books 6 Java books 12 Haskell b

Given 8 Perl books, 17 Python books, 6 Java books, 12 Haskell books, and 20 C++ books, how many of these books must we select to ensure that we have 10 books all dealing with the same programming language?

Solution

To have 10 books dealing with the same programming language

we see that chances are only for Python, Haskeel and C++, while others are <10

Of these minimum is Haskell books with 12 and max C++ with 20

If 8 Peri books, 6 java books, come first then 14 books without any same language of 10 book would be done.

Next available are 17 Python, 12 Haskell and 20C++
If at the most 9 Python, 9 Haskell and 9 C++ books are selected then 27 attempts were wasted

REmaining has to fulfil the condition

Hence minimum no of books to be taken out to ensure the requried condition = 20+27+1 =48

Given 8 Perl books, 17 Python books, 6 Java books, 12 Haskell books, and 20 C++ books, how many of these books must we select to ensure that we have 10 books al

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site