1. Ye topic hai kya?
Ek line words/numbers. Machine har step pe rearrange. Step I, II, III… Last = jab line aur nahi badalti.
Yahan nahi
Coding: CAT→DBU. Sitting: seats. Number series: agla number. Arrangement mix AR pe — machine yahan.
AR se farq
Odd-step word / even-step number bhi yahin. Last sorted se input unique nahi.
2. Rule kaise pakdo
2) Step I → II se verify. Ek example pe rule lock, phir sawaal wali line pe apply.
3) “Last step” = sorted / cycle complete / koi move baaki nahi.
4) Last A–Z line se Input wapas unique nahi — kai inputs same last de sakte. Ulta mat chalao.
3. Common machines
| Machine | Har step |
|---|---|
| Push | Leftmost last pe; baaki left khisak |
| Alpha left | Agla A–Z word left arranged zone mein; beech ka order same |
| Number left | Agla chhota (ya bada) number left |
| Dono-ends | Ek hi step mein: word left + number right |
| Reverse-ek | Ek word ulta (left se), baaki same |
4. Sawal — basic se pro
Push: leftmost last pe. Input diya. Step III kya?
- shyam gita mohan ram
- gita mohan ram shyam
- mohan ram shyam gita
- ram shyam gita mohan
Solution
- I shyamgitamohanram
- II gitamohanramshyam
- III mohanramshyamgita
Har step ek word A–Z, left arranged. Step II?
- book pen lamp desk
- book desk pen lamp
- book desk lamp pen
- desk book lamp pen
Solution
- Order
book, desk, lamp, pen.
- I — book left bookpenlampdesk
- II — desk bookdeskpenlamp
Remaining: pen lamp desk → desk nikaal, baaki pen lamp.
Har step agla chhota number left. Last step?
- 5 28 41 12
- 5 12 28 41
- 5 12 41 28
- 41 28 12 5
Solution
- I 5284112
- II 5122841
12 remaining se. 28 aur 41 pehle se jagah. Last = yahi.
Left se ek word reverse per step. Baaki same. Step II?
- NUS BOX TEA
- NUS XOB TEA
- NUS XOB AET
- NUS XOB AET TEA
Solution
- I
Pehla ulta:
NUS BOX TEA. (Poora line ek saath reverse = coding, yahan nahi.) - II
Doosra ulta:
NUS XOB TEA.
Ek step mein: agla A–Z word left, agla chhota number right. Last step?
- blue red 36 11 green 4
- blue green red 36 11 4
- blue green red 4 11 36
- red blue green 4 11 36
Solution
- Lists
Words: blue, green, red. Numbers chhote→right: 4, 11, 36.
- I — blue + 4
Beech same order: red 36 11 green.
bluered3611green4 - II — green + 11 bluegreenred36114
red aur 36 beech mein already last pair. Last = II. C numbers left-to-right ascending — galat (yahan chhote right pe hain).
Q5 wali machine, wahi input. Step I ke baad 36 left se kaun si position (1 se)?
- 2
- 3
- 4
- 5
Solution
- Step I
blue red 36 11 green 4→ 36 teesra.
Wahi dono-ends machine. Naya input. Step II?
- elm 21 oak pine 14 7
- elm oak 21 pine 14 7
- elm oak pine 21 14 7
- elm oak pine 7 14 21
Solution
- Words / nums
elm, oak, pine. Right pe 7, 14, 21.
- I — elm + 7
Beech: 21 oak pine 14.
elm21oakpine147 - II — oak + 14 elmoak21pine147
Input: dog cat rat. Step I: cat dog rat. Rule kaun sa?
- Push (leftmost last)
- Agla A–Z word left, baaki order same
- Har word reverse (coding jaisa)
- Poori line ulti
Solution
- Push hota
cat rat dog— nahi. - Alpha
cat pehla A–Z; baaki dog rat. Exact Step I.
- Reverse words
god tac tar. Line reverse: rat cat dog. Dono galat.
Chhota-left machine. Input 64 9 25 16 4. Last tak kitne steps (pehla change = Step I; last wo jahan fully sort ho)?
- 2
- 3
- 4
- 5
Solution
- I
4 64 9 25 16
- II
4 9 64 25 16
- III
4 9 16 64 25
- IV
4 9 16 25 64 — sorted. 4 steps.
Push machine. Step II yeh hai. Input kya tha?
- star kit sun moon
- moon star kit sun
- sun moon star kit
- kit sun moon star
Solution
- Push ulta
Last token uthake first pe. Ek step peeche.
- II → I
star (last) aage:
star kit sun moon - I → Input
moon aage:
moon star kit sun
Practice
Pehle khud, phir neeche kholo.
5 words: a b c d e, push. Step IV?
- e a b c d
- b c d e a
- d e a b c
- a b c d e
Solution
- Cycle
I: b c d e a. II: c d e a b. III: d e a b c. IV: e a b c d.
Q2 wali alpha machine. Last step mein doosra word?
- book
- desk
- lamp
- pen
Solution
- Last
book desk lamp pen. Doosra = desk.
Ab agla bada number left (descending). Input 12 41 5 28. Step I?
- 5 12 41 28
- 41 12 5 28
- 28 12 41 5
- 12 41 5 28
Solution
- Bada = 41
Left, baaki order: 12 5 28 →
41 12 5 28.
Reverse-ek, lekin right se (pehle last word). Input SUN BOX TEA. Step I?
- NUS BOX TEA
- SUN BOX AET
- SUN XOB TEA
- AET XOB NUS
Solution
- Last word
TEA → AET.
SUN BOX AET.
Q5 machine. Input zinc 18 ash 3 mud 9. Step I?
- ash zinc 18 mud 9 3
- ash zinc mud 18 9 3
- 3 ash zinc 18 mud 9
- ash 3 zinc 18 mud 9
Solution
- ash left, 3 right
Beech: zinc 18 mud 9.
ash zinc 18 mud 9 3.
Alpha-left. Input mango desk ant. Last (fully A–Z) tak kitne steps?
- 1
- 2
- 3
- 4
Solution
- I
ant mango desk
- II
ant desk mango — sorted. Teesra word khud last slot mein. 2 steps.
Input p q r s. Kaun sa Step I push hai?
- q r s p
- p q r s
- s p q r
- q p r s
Solution
- Push
p last: q r s p. C right-se shift. D alpha-ish nahi.
Q5 last step: blue green red 36 11 4. Left se 4th token?
- red
- 36
- 11
- green
Solution
- Count
1 blue, 2 green, 3 red, 4 → 36.
Chhota-left. Input 20 3 15. Last?
- 3 20 15
- 3 15 20
- 20 15 3
- 15 3 20
Solution
- I
3 20 15
- II
3 15 20
Alpha-left machine. Sirf last step pata: ant bat cat. Input kya tha?
- cat bat ant
- bat ant cat
- ant cat bat
- Cannot say — last sorted, original order gayab
Solution
- Last unique nahi
Kai inputs same A–Z last dete. Input ke liye Step I ya original chahiye.
