Introduction
Rank interchange वाले questions यह पूछते हैं कि जब दो लोग लाइन में अपनी positions बदलते हैं, तो उनकी ranks कैसे बदलती हैं। यह pattern seating और ranking problems में बहुत आता है और यह टेस्ट करता है कि आप कितनी जल्दी positions को एक end से दूसरे end में convert कर सकते हैं और swap के बाद rank निकाल सकते हैं।
Conversion और swap method को समझने से mistakes नहीं होतीं, खासकर जब ranks अलग-अलग ends से दी हों या total दिया हो/न दिया हो।
Pattern: Rank after Interchange
Pattern
मुख्य concept: पहले दोनों ranks को एक ही reference (हमेशा left-end सबसे आसान) में convert करें, फिर positions swap करें, और फिर requested side से नई rank निकालें।
Useful formulas:
- Right position = Total - Left position + 1
- Total = Left position + Right position - 1 (जब एक ही व्यक्ति की दोनों positions दी हों)
- Swap के बाद नई position = दूसरे व्यक्ति की पुरानी position
Step-by-Step Example
Question
20 students की row में, A left से 5th है और B right से 8th है। वे दोनों अपनी जगह बदलते हैं। Swap के बाद A की नई rank right से क्या होगी और B की नई rank left से क्या होगी?
Solution
-
Step 1: Given positions और total लिखें
Total = 20, A = left से 5th, B = right से 8th -
Step 2: B की position को left-reference में convert करें
B from left = 20 - 8 + 1 = 13th -
Step 3: Swap होने वाली positions note करें
A की old-left position = 5 B की old-left position = 13 Swap के बाद:- A नई left position = 13
- B नई left position = 5
-
Step 4: A की नई left-position को right-position में convert करें
A from right = 20 - 13 + 1 = 8th from right -
Step 5: B की नई position
B नई left-rank = 5th from left -
Final Answer:
A = 8th from right; B = 5th from left -
Quick Check:
A अब left 13 पर है → right = 8 सही। B अब left 5 पर है → left = 5 सही। ✅
Quick Variations
1. अगर दोनों ranks left और right दोनों से दी हों तो पहले एक ही reference में convert करके swap करें।
2. अगर total न दिया हो लेकिन किसी एक व्यक्ति की left और right rank दी हो, तो Total = left + right - 1 से निकालें।
3. Multiple swaps हों तो हर swap को step-by-step नई स्थिति मानकर करें।
4. Swap के बाद “कितने लोग बीच में हैं” पूछा जाए तो नई positions से difference formula लागू करें।
Trick to Always Use
- Step 1 → सभी ranks को left-reference में convert करें।
- Step 2 → Numeric positions को सीधे swap करें।
- Step 3 → Requested side (right/top) में convert करें: Total - pos + 1।
Summary
Summary
- Swap questions में सबसे पहले दोनों positions को एक ही end (left/top) में बदलें।
- Right = Total - Left + 1 formula हमेशा उपयोग करें।
- Swap के बाद हर व्यक्ति की position = दूसरे की पुरानी position।
- Quick-check करके opposite-end rank verify करें।
याद रखने योग्य उदाहरण:
A left से 4th और B right से 3rd हों → पहले B को left में बदलें, फिर swap करें, फिर requested ranks निकालें।
