GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
AptitudeLogical reasoning · Deduction and Arrangement

Puzzles

Solve floor, matching, ranking and weekday puzzles by drawing the right table and letting each clue remove cases.

6 min read 45 questions
Practice questions

On this page

1/10
  1. 011. What puzzle questions test
  2. 022. Three kinds of clue
  3. 033. Floor and order puzzles
  4. 044. Matching grids
  5. 055. Ranking and comparison
  6. 066. Days-of-the-week schedules
  7. 077. Shortcuts
  8. 088. Common traps
  9. 099. Revision sheet
  10. 10Practice
Back to top

1. What puzzle questions test

A puzzle gives a small world (people on floors, friends and their cities, a week of presentations) and five to eight clues. Exactly one arrangement fits them all. You are marked on the three to five questions that follow, so one wrong placement costs several marks; one clean table earns them all.

Every puzzle in this chapter is one of four kinds, and each kind has its own drawing. Choosing the right drawing is half the solution.

PuzzleDrawTypical clue
Floors or any fixed orderA stack of numbered boxesA lives immediately above B
Matching (who has what)A grid of ticks and crosses, or a fill-in tableThe person from Pune plays chess
Ranking and comparisonA ladder, or a chain of > signsA is taller than B
Days of the weekA strip of day boxesA presents two days after B

2. Three kinds of clue

  • Direct: "Asha lives on floor 3". Enter it at once.
  • Relative: "Meena lives immediately above Imran". It makes a block that moves as one piece; count the positions the block can take.
  • Negative: "Divya does not live on floor 4", "Ravi and Asha are not on adjacent floors". It places nobody, but it removes cases.

Work in that order. A relative clue with a gap of exactly one or two is nearly as strong as a direct clue; "above" or "earlier than" with no distance is the weakest and is used last.

3. Floor and order puzzles

Worked example. Asha, Divya, Imran, Meena and Ravi live on floors 1 to 5 (floor 1 is the lowest), one on each.

  1. Asha lives on floor 3.
  2. Meena lives on the floor immediately above Imran.
  3. Asha and Divya live on adjacent floors.
  4. Ravi lives on a lower floor than Divya.
Floor 1Floor 2Floor 3AshaFloor 4Floor 5
Step 1: the direct clue.
  1. Asha is on floor 3.
  2. Imran and Meena form a block with Meena on top. The free pairs of adjacent floors are 1–2 and 4–5.
  3. Divya is next to Asha, so Divya is on floor 2 or floor 4.
  4. Try the block on 1–2: floors 4 and 5 are left, so Divya is on 4 and Ravi on 5. That breaks clue 4 (Ravi must be lower than Divya). Rejected.
  5. So the block is on 4–5: Imran 4, Meena 5. Divya takes floor 2 and Ravi floor 1, which satisfies clue 4.
Floor 1RaviFloor 2DivyaFloor 3AshaFloor 4ImranFloor 5Meena
The only arrangement that passes all four clues.

4. Matching grids

When each person has exactly one city (or sport, or role) and no two share, draw a grid: people down the side, values across the top. A tick in a cell puts crosses in the rest of its row and column. A row or column with all crosses but one gets a tick in the last cell.

Worked example. Asha, Ravi and Meena come from Pune, Kochi and Delhi, one each.

  1. Asha is not from Pune.
  2. Meena is not from Pune.
  3. Asha is not from Delhi.
PuneKochiDelhiAsha✗✓✗Ravi✓Meena✗✓
Crosses come from the clues; each tick is forced by them.
  1. The Pune column has crosses for Asha and Meena, so Ravi is from Pune.
  2. Asha's row has crosses under Pune and Delhi, so Asha is from Kochi.
  3. Delhi is the only city left: Meena.

With two attributes (city and sport), use a fill-in table with one row per person. A link clue such as "The person from Pune plays chess" joins two columns: wherever Pune goes, chess goes too, and anyone who cannot be one cannot be the other.

5. Ranking and comparison

Comparison chains. Turn every sentence into an inequality and join them through the shared names.

Worked example. Asha is taller than Ravi. Meena is shorter than Ravi. Imran is taller than Asha. In symbols: Asha > Ravi, Ravi > Meena, Imran > Asha. Chained: Imran > Asha > Ravi > Meena. So Imran is the tallest and Meena the shortest.

ShortestMeenaThird tallestRaviSecond tallestAshaTallestImran
The chain written as a ladder.

If two people are never linked (A > B and A > C say nothing about B against C), the order between them is open, and a question about it has the answer "cannot be determined".

Rank arithmetic. When someone is counted from both ends of a list, that person is counted twice.

WantedFormula
Total, given ranks from top and bottomtop + bottom − 1
Rank from the other endtotal − rank + 1
People between A (from left) and B (from right), not crossingtotal − (left + right)
Total when the two cross over (overlap)left + right − between − 2

Worked example. Meena is 9th from the top and 15th from the bottom: total = 9 + 15 − 1 = 23. In a row of 40, if Ravi is 12th from the left and Asha 9th from the right, there are 40 − (12 + 9) = 19 people between them.

6. Days-of-the-week schedules

A schedule is a floor puzzle laid on its side: the days are the floors. "The day just before" is an adjacent block; "two days after" is a block with a gap of one.

Worked example. Asha, Divya, Imran, Meena and Ravi present on Monday to Friday, one a day.

  1. Divya presents on Wednesday.
  2. Asha presents on the day just before Divya.
  3. Ravi presents two days after Asha.
  4. Imran presents earlier in the week than Meena.
MonImranTueAshaWedDivyaThuRaviFriMeena
Divya fixes Wednesday; the rest follow in clue order.
  1. Divya is on Wednesday, so Asha, the day before, is on Tuesday.
  2. Ravi is two days after Asha: Thursday.
  3. Monday and Friday are left. Imran is earlier than Meena, so Imran takes Monday and Meena Friday.

7. Shortcuts

  • Count the positions a block can take before trying any. A block of two with a gap of two fits only n − 3 ways in n slots.
  • Top and bottom (or Monday and the last day) are special: nothing is above the top, so "A is above B" already bars B from the top and A from the bottom.
  • Odd/even clues halve the options. Combine them with a gap clue: floors two apart have the same parity.
  • In a grid, a "neither A nor B" clue is two crosses; an "either A or B" clue is a cross for everyone else.
  • When two cases survive, do not guess. Carry both; the next clue usually kills one in a single check.
  • For rank sums, say it aloud: "counted twice, so minus one".

8. Common traps

  • "Above" is not "immediately above". Without "immediately", any number of floors may lie between.
  • "Two floors above" means a difference of two (one floor in between); "two floors between" means a difference of three.
  • Answering "cannot be determined" too quickly: the top or bottom of a chain is often fixed even when the middle is not.
  • Answering a name when the chain really leaves two candidates.
  • Adding ranks from both ends without subtracting 1, or forgetting the +1 when switching ends.
  • After a "they exchange places" question, using the old arrangement.

9. Revision sheet

SituationDo this
Fixed order (floors, days)Boxes; direct clues, then blocks, then negatives
Who has whatGrid; a tick crosses out its row and column
Taller / older / heavierChain of > signs; unlinked pairs stay open
Total from two rankstop + bottom − 1
Other endtotal − rank + 1
Between two peopletotal − (left + right); with overlap, left + right − total − 2
Several arrangements leftOnly what is common to all is certain

Practice

45 questions in 3 sets. Every answer comes with its explanation, and each question you get right earns XP.

  • Easy · 15
  • Medium · 15
  • Hard · 15
Start practising
PreviousSeating ArrangementsNextOrder and Ranking
Log inStart free