Question
How many boxes are heavier than box
P? Answer the questions based on the information given below. There are seven boxes P, Q, R, S, T, U and V have different weights. Box P is heavier than at least two boxes. Number of boxes heavier than box S is equal to number of boxes lighter than box T. Box Q is heavier than box P. Box S is heavier than box R and box Q but not the heaviest. Box Q is not the 3rd heaviest box. Box V is heavier than box U, which is lighter than box T.Solution
Box P is heavier than at least two boxes. Box S is heavier than box R and box Q but not the heaviest. Number of boxes heavier than box S is equal to number of boxes lighter than box T. Box Q is heavier than box P. Box Q is not the 3rd heaviest box. Box V is heavier than box U which is lighter than box T. So, box S and box T must be 2nd heaviest and 2nd lightest boxes respectively. Also, As, box Q is not the 3rd heaviest, so, R must be 3rd heaviest and V must be heaviest box. The arrangement is shown below, V > S > R > Q > P > T >. U
Running time T(n) where 'n' is the input size of the recursive algorithm given as : T(n) = c + T(n-1), if n > 1 ; T(n) = d if n < 1. The order of the a...
With what command you can see your user name?
The attributes that do not exist in the physical database
In Go, what is the purpose of a goroutine?
State true/false
Trojan works in background and steal data which is sensitive
What is an identifier in C language?
Frames are related to which layer of OSI model
What is the purpose of the delete operator in C++?
Which of the following best describes a transistor?
Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?Â