# Ranking Test

## Queue/Row based Problems:

In these N number of People/ Items are in a Row/Queue

### Type1: When Person is Standing in the Middle

Example:
Neha is 10th from both ends of a row. How many candidates are there in the row?
Neha is 10 from both sides of the row.
It means 9 persons are to his left and 9 are to his right. He is 10th from both ends. So total candidates are 9+1+9=19 candidates

### Type2: When Person Position from both sides are given.

Example:
Ravi is 4th from left and 17th from right end of a row. How many persons are there in the row?
Total persons in the row= 4+17-1=20 persons.

### Type3: Two person Interchange their Positon. Find their new Positins from any particular end.

Example:
Vinay and Sakshi are standing in a queue. Vinay is 9th from left and Sakshi is 6th from right. When both interchange their positions, Vinay becomes 15th from left. Find out new position of Sakshi from right end.
Vinay’s position changes from 9th to 15th from left end. So there is an increase of 6 ranks. Since Vinay and Sakshi both interchanged their positions, so there must be the same increase in rank of Sakshi position from right(i.e. increase of 6). So Sakshi's position from right end will be 6+6=12

### Type4: Two person Interchange their Position. Find Total Number of People in Row?

Example:
Sonam and Manish are standing in a row of boys. Sonam is 14th from left and Manish is 7th from right. If both interchange their positions, Manish becomes 15th from the right. Find out the total number of boys in that row?