Question
A basket contains (x + 4) red apples, (x + 6) green
apples, and (x + 8) yellow apples. The probability of drawing a yellow apple from the basket is (7/20). Find the number of green apples in the basket.Solution
ATQ, (x + 8)/[(x + 4) + (x + 6) + (x + 8)] = 7/20 Simplify and solve for x: 20(x+8) = 7(3x + 18) 20x +160 = 21x+ 126 21x -20x = 160-126 x = 34 Therefore, number of orange balls in the bag = 34 + 6 = 40
Recursive problems are implemented by
Which of the following is considered the strongest type of encryption method in modern cyber security practices?   Â
Which algorithm finds the longest common subsequence (LCS) of two sequences?
What is the worst-case time complexity of QuickSort with a random pivot for sorting n distinct elements?
Which traversal method in a binary search tree retrieves nodes in sorted order?
Dynamic Programming is preferred over recursion when:
Which sorting algorithm is not stable by default?
Which file structure is best suited for handling large datasets and ensuring fast access in C, C++, Java, or Python?    Â
In Database Management Systems, what is the primary purpose of normalization?
Which architecture allows multiple processors to share memory and work simultaneously?     Â