Question
Who lives two floors below O in the same type of flat
as that of O? Answer the questions based on the information given below. Ten persons namely, M, N, O, P, Q, R, S, T, U and V live in a building of five floors in Silicon Valley Society in Bangalore. The ground floor is considered as 1st floor, the floor above it as 2nd floor and so on. Each floor consists of two types of flats i.e. Flat-A and Flat-B. On every floor, Flat A is in the west of Flat-B. The dimensions of each of the flats are same. Only one person lives in each flat. U lives on 2nd floor. R lives two floors above S such that they both live in either Flat-A or Flat-B of their floors. Q lives in the west of O on an odd numbered floor. V, who lives in the same type of flat as that of Q, lives either three floors below or above M in the same type of flat as that of M. N and O live in the same type of flats such that N lives two floors above O. T lives neither on the topmost floor nor to the east of M.Solution
Q lives in the west of O on an odd numbered floor. ย V, who lives in the same type of flat as that of Q, lives either three floors below or above M in the same type of flat as that of M. It implies that Q, V, M live in flat-A of their floors while N, O live in flat-B of their floors. . R lives two floors above S such that they both live in either Flat-A or Flat-B of their floors. The next point is that V and M have two floors in between them and Q lives on an odd numbered floor. So, if we start placing Q, V, M, we can never place R and S who are two floors apart from each other in flat-A of their floors. So, it clearly means that R, S live in Flat-B. Thus, we finally get two cases: Case 1: V, M live on 5, 2 floors in any order. And U lives on 2nd floor. Now, if we see the first case R and V by placing N and O on odd numbered floors.U lives on 2nd floor , we will never be able to place U on 2nd floor.So, the first case gets rejected. We are left with Case 2 only. Case 2: Thus, U lives in flat-A on 2nd floor.
Which of the following data structures is best suited for implementing a priority queue?ย ย ย
Which of the following operations is most efficient in a singly linked list compared to an array?
Which protocol is most commonly used in IoT devices for lightweight, efficient communication in constrained networks?
For a given array, there can be multiple ways to reach the end of the array using minimum number of jumps.
In terms of processor performance, which factor has the greatest impact on reducing instruction execution time for computationally heavy applications?ย ...
Which of the following sorting algorithms is NOT stable?ย
Appending value to list in python
What does 'IMPS' stand for?
Which of the following virtualization types allows multiple operating systems to run concurrently on a single physical machine, but does not require a h...
Purpose of Scope resolution operator