Question
Quantity-I: Average number of cameras sold by a company
from January to May is 500, while average number of cameras sold by the same company from May to December is 460. If the average number of cameras sold from January to December is 480, then find the number of cameras sold in May. Quantity-II: 440 In the question, two quantities I and II are given. You have to solve both the quantities to establish the correct relation between Quantity-I and Quantity-II and choose the correct option.Solution
ATQ, Quantity I: Number of cameras sold by the company from January to May = 500 × 5 = 2500 Number of cameras sold by the company from May to December = 460 × 8 = 3680 Number of cameras sold by the company from January to December = 480 × 12 = 5760 Number of cameras sold in May = 2500 + 3680 – 5760 = 420 Quantity II: 440 Hence, Quantity-I < Quantity-II
For which problem is dynamic programming NOT generally an applicable technique because it lacks overlapping subproblems?
Which of the following statements about Dijkstra’s algorithm is true?
Which of the following sorting algorithms is best for nearly sorted data?
In hashing, what is a collision?
Consider a directed acyclic graph (DAG). The problem of finding the longest path in a DAG (with edge weights) can be solved in:
The time complexity of computing the all-pairs shortest paths in a dense graph with V vertices using Floyd–Warshall is:
Which command is TCL command
Which sorting algorithm is not stable by default?
Which algorithm guarantees minimum spanning tree and will produce a different tree depending on tie-breaking?
Which algorithm guarantees the shortest path in a graph with negative weights but no negative cycles?