Question
A box contains only three colors of balls- red, green
and blue. What is the minimum number of balls that should be picked from the box to ensure that at least 3 red balls or at least 5 green balls or at least 6 blue balls are picked?Solution
If we pick at least 2 red balls, 4 green balls and 5 blue balls from the box, the total number of balls picked from the box will be 11. If one more ball is picked from the box, irrespective of what it is, it can be said that at least 3 red balls or at least 5 green balls or at least 6 blue balls have been picked from the basket. Hence, required number of balls = 11 + 1 = 12
Which data analytics technique is suitable for handling missing data points in a dataset?
The dynamic memory allocation is the memory allocation done at the _________.
Which of these can be overloaded?
Which of the following is a valid token in lexical analysis?
What does a "Shared Lock" in a DBMS locking protocol allow?
Consider a 4-way set associative cache consisting of 128 lines with a line size of 64 words. The CPU generates a 20-bit address of a word in main memor...
In dynamic programming, what is memoization?
What is the minimum no. of variables/ features required to perform clustering?
What is the basic component of an electronic circuit that restricts the flow of current?
When designing a sequential circuit, what is the purpose of flip-flops or latches?