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 6 red balls or at least 8 green balls or at least 9 blue balls are picked?Solution
If we pick at least 5 red balls, 7 green balls and 8 blue balls from the box, the total number of balls picked from the box will be 20. If one more ball is picked from the box, irrespective of what it is, it can be said that at least 6 red balls or at least 8 green balls or at least 9 blue balls have been picked from the basket. Hence, required number of balls = 20 + 1 = 21
In a blockchain network, what are "nodes"?
What is the function of a router?
Which of the following components is used to amplify an analog signal?
How do you print the value of a variable ‘x’ in Python?
Which storage technology provides high-speed, non-volatile data storage but is volatile and temporary in nature?
In Go, what is the purpose of a goroutine?
Default value of boolean variable in an array
Which of the following is a characteristic of a public blockchain?
At which layer of the OSI model do hardware devices like switches primarily operate?
Which method is commonly used for error detection at the Data Link Layer?