All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General
King-Queen-Jack (Posted on 2024-11-19) Difficulty: 3 of 5
Place a Jack (J), a Queen (Q) and King (K) on three slots on a row, say, in the order JQK(J on the extreme left, K on the extreme right).
Now, reverse the position of the cards (i.e. KQJ) in the least possible number of moves. In a valid move, a card can be moved left or right one position. This move may only place a card into an empty slot or onto a card of higher rank. For example, a J can be placed on a K, NOT vice-versa. Also, only the top card of the stack can be moved. (Note: Since a card only moves one place it may not 'skip over' another card.)

What is the least number of moves required if:
a) There are only three slots.
b) There is an empty slot to the left of the Jack (initial arrangement is JQK).
c) There is an empty slot to the right of the King (initial arrangement is JQK).

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( You must be logged in to post comments.)
  Subject Author Date
There are no comments yet.
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information