Question
In an election between two candidates βPβ and
βQβ, βPβ secured 65% of the total votes and defeated βQβ by 3,000 votes. Find the number of votes secured by βQβ.Solution
Let the total number of votes be β100nβ Number of votes received by βPβ = 0.65 Γ 100n = 65n Number of votes received by βQβ = 100n β 65n = 35n So,
65n β 35n = 3,000 Or,
30n = 3,000 Or,
n = 100 Required number of votes = 35 Γ 100 = 3,500
What is the time complexity of searching an element in a balanced binary search tree (BST) with nnn nodes?
In networking, what is the primary purpose of subnetting?
What will be the output of the following queue implementation using two stacks?
class QueueUsingStacks {Β Β Β Β Β Stacks1 = new Stack <>... Which of the following is an effective countermeasure against Cross-Site Scripting (XSS) attacks in a web application?
Which tree traversal gives nodes in non-decreasing order for a BST?
In a compiler's code flow, which operation is primarily used to manage function call contexts (local variables, return addresses) during program execution?
What is the base case in a recursive function?
Max-Flow Min-Cut theorem states:
What are the time and space complexities of the standard dynamic programming approach for finding the length of the Longest Common Subsequence (LCS) of ...
Which of the following is NOT among the OWASP Top 10 Web Security Risks?