You start with a shuffled deck of 52 cards numbered 1,2,3,...52. You place them in 4 rows and 13 columns. Then you sort each row in ascending order as per their number. Then you sort each column in ascending order. After this procedure, determine the maximum number of swaps needed to sort a particular row.
- via Algorithmic puzzles