Question
As many persons live between C and I is the same as the
number of person lives between G and ___? Study the following information carefully and answer the below questions. Nine persons- A, B, C, D, E, F, G, H, and I are living in nine-storey building such that the bottommost floor is numbered as one and immediately above it is numbered as two and so on till the topmost floor is numbered as nine. A lives four floors below C, either of them lives on the topmost floor or bottommost floor. Only two floors are there between A and B. The number of floors between C and B is the same as the number of floors between G and D. B lives immediately above D. E lives three floors above H who lives on an even number floor. The number of floors between H and D is the same as the number of floors between I and F. F and E does not live on the adjacent floors.Solution
We have, A lives four floors below C, either of them lives on the topmost floor or bottommost floor. Only two floors are there between A and B. From the above condition, there are three possibilities. Again we have, E lives three floors above H who lives on an even number floor. The number of floors between H and D is the same as the number of floors between I and F. F and E does not live on the adjacent floor. From the above condition, case-1 and case-2 get eliminated. Case-1a shows the final arrangement.
What is the primary objective of the Producer-Consumer problem in concurrent programming?
Using a bottom-up dynamic programming approach to calculate the 6th Fibonacci number (F(0)=0, F(1)=1), what are the values stored in the DP table F at i...
Which access specifier allows data to be accessed only within the class?
Which is computer object code?
Which model uses probability of word occurrence based on previous n-1 words?
In a perfectly balanced Binary Search Tree with N nodes, what is the worst-case time complexity for searching for an element?
Python's built-in dict (dictionary) data structure is typically implemented using a hash table. What is the average-case time complexity for get, set, a...
Which of the following language is used for specifying style sheets for XML documents?Â
In C++, what mechanism is primarily used to achieve runtime polymorphism?
Which of the following uses Latent Dirichlet Allocation (LDA)?