Question
Who lives on the same floor with
A? Answer the questions based on the information given below. Eight persons A, B, G, C, D, E, F and H are living in a building having four floors where ground floor is numbered as 1, the floor above it is numbered as 2 and so on till the topmost floor which is numbered as 4. Each floor is having two types of flats i.e. Flat β Y and Flat β Z such that flat β Y of floor β 2 is exactly above the flat β Y of floor β 1 and exactly below the flat β Y of floor β 3 and so on. Similarly, flat β Z of floor β 2 is exactly above the flat β Z of floor β 1 and exactly below the flat β Z of floor β 3 and so on. Also, Flat β Z is to the east of Flat β Y. There is one floor between Bβs and Cβs floor. G lives just below Eβs flat such that both live in the same type of flat. F and H live in the same type of flat such that F lives just above Hβs floor and lives immediate west of B. D does not live in flat which is adjacent to Fβs flat. C lives on a floor above B. B and C live in different types of flats.Solution
G lives just below Eβs flat such that both live in the same type of flat. F and H live in the same type of flat such that F lives just above Hβs floor and lives immediate west of B. D does not live in flat which is adjacent to Fβs flat. 4. C lives on a floor above B. So, B must live in flat β Z of floor β 2 as F lives immediate west of B and F lives above the floor on which H lives, which means C lives on topmost floor in flat β Y. Now, E and G lives in same flat and G live below E which means G must live on floor β 3 in flat β Z and E lives on 4th floor in flat β Z. Now, D and F do not live in same flat which means D must live on ground floor in flat βZ so, H must live on ground floor in flat β Y. The final arrangement is as follows:
What is the time complexity of searching an element in a balanced binary search tree (BST) with nnn nodes?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
Max-Flow Min-Cut theorem states:
In system design, what is the primary purpose of a feasibility study?
A complete binary tree has 127 nodes. What is its height (assuming the root is at level 0)?
Deletion in Red-Black Trees maintains balance using:
Fibonacci heaps support which operation in O(1) amortized time?
Which of the following is a primary advantage of using a star schema in a data warehouse design?
Which of the following is an effective countermeasure against Cross-Site Scripting (XSS) attacks in a web application?
A programmer is implementing a data analysis tool that frequently needs to append elements to a collection. If an array is used, what is a potential per...