Logical maths

Logic Level 3

You are given cards numbered 100, 99, 98, ..., 3, 2, 1 in that order. You want to rearrange them in the reverse order 1, 2, 3, ..., 98, 99,100 switching only two adjacent cards at a time.

What is the minimum number of switches necessary?


The answer is 4950.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Amal Hari
Jan 5, 2019

card number 100 100 is switched between 99 99 cards before it, similarly card number n n is switched between ( n 1 ) (n-1 ) cards.

Total number of switches is therefore ( 99 100 ) / 2 = 4950 (99*100)/2=4950 , which is the sum of all individual switches.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...