Soliloquy

interview questions – part 1

Posted on: October 26, 2008

I come across loads of interesting questions which have been asked in interviews. Just thought of posting them here in my blog…

Question 1:

There is a long table with 100 cups arranged in a line. The cups are numbered from one to hundred. Initially all cups are closed with lids.

This is what you do:

First, you open all cups that are multiples of 1. ( Obviously all hundred cups )

Next, you invert all the cups that are multiples of 2. Inverting a cup refers to opening a cup if it is closed, or, closing a cup if it is open.

Next, you invert all cups that are multiples of 3.

This process is continued for 4, 5. 6, …. 100.

After this is done, how many cups will be open, and what are their numbers ??

Question 2:

There is a standard chess board. ( 8 x 8 ). A horse is placed on a corner square, say, black

The task that is being done is the obvious, move to all squares in the chess board, without landing on a square more than once.

The question is different:

Is it possible to reach the corner that is diagonally opposite to the starting square after moving to all other squares ? If yes, how ? If no, why ?

Solutions

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

What I blog about

When did I blog

October 2008
M T W T F S S
« Sep   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Visitor Count

  • 29,146 readers

RSS From NITTians

  • An error has occurred; the feed is probably down. Try again later.

Quotable Quote


They build too low who build beneath the skies

Visitor Map

Academics Blogs - BlogCatalog Blog Directory
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: