Empty Position Stack

Empty Position Stack problems involve a vertical stack where some positions are empty (no box). You must arrange a smaller number of boxes in a larger number of positions, using constraints about which positions are empty and relationships between boxes.

10Worksheets
200+Practice Questions
AdvancedDifficulty
2-3 hoursHours to Master

Introduction to Empty Position Stack

Empty Position Stack problems involve a vertical stack where some positions are empty (no box). You must arrange a smaller number of boxes in a larger number of positions, using constraints about which positions are empty and relationships between boxes.

Prerequisites

Single stack basics Handling of empty positions Gap constraints Process of elimination with empty cells
Why This Matters: Empty Position problems appear in 1-2 questions in advanced exams. They test gap handling and non-consecutive reasoning.

How to Solve Empty Position Stack Problems

1

Step 1: Determine total positions (N) and number of boxes (M), with N > M

2

Step 2: Identify which positions are empty from given conditions

3

Step 3: Place all directly given boxes at their specified positions

4

Step 4: Apply constraints about box relationships (gaps, adjacency)

5

Step 5: Use elimination to place remaining boxes in non-empty positions

6

Step 6: Answer the specific question (position of a box or box at a position)

Pro Strategy: Create a list of all positions. Mark known empties and filled boxes. Use gap constraints to determine the positions of remaining boxes and empties.

Example Problem

Example: Seven positions (1-7 bottom to top). Five boxes P-T placed; two positions empty. Q at top (7). P at bottom (1). One empty at position 2. R and S have exactly two entities between them. T immediately above second empty. Find T's position. Solution: Step 1: Position 1 = P, Position 7 = Q, Position 2 = Empty Step 2: Second empty at position X, T at X+1 Step 3: Try X=4 → T=5, positions 3,6 for R,S: between 3 and 6 = positions 4,5 (Empty,T) → 2 entities ✓ Step 4: T at position 5 Answer: Position 5

Pro Tips & Tricks

  • Empty positions are 'entities' when counting boxes between
  • Total positions = boxes + empty slots
  • Empty slots have no box but occupy a position
  • When counting 'entities between', count both boxes and empties
  • The second empty is not necessarily the second empty in position order
  • Use a placeholder (e.g., 'E') to mark empty positions

Shortcut Methods to Solve Faster

If 'exactly k entities between', positions differ by k+1
The number of empty slots = total positions - number of boxes
Empty slots can be anywhere unless constrained

Common Mistakes to Avoid

Forgetting that empty slots are 'entities' in counting
Assuming all empty slots are consecutive
Not considering that empties can be at ends
Miscounting entities between positions

Exam Importance

Empty Position Stack is an important topic for various competitive exams. Here's how frequently it appears:

SSC CGL
0-1 questions
BANKING PO
1-2 questions
RAILWAYS RRB
0-1 questions
CAT
1-2 questions
INSURANCE
0-1 questions

Ready to Master Empty Position Stack?

Start with Worksheet 1 and work your way up to expert level! Each worksheet includes:

20 practice questions
Detailed solutions
Step-by-step explanations
Start Practicing Now