gamodg
BAN USER
Questions (1)
Comments (6)
Reputation 30
- 0of 0 votes
AnswersWe have a rectangle
- gamodg
It is divided in eight parts by three vertical and one horizontal line so that there are 8 chambers.
Now we have numbers from 1-8 to be filled in these chambers.
Rule : No two consecutive numbers must be present either side to side or diagonal
Invalid situation example
Given 5 at position 2 then 4 cannot occur at any of the give position.
4 5 4
_ _ _ _
4 4 4
_ _ _ _| Report Duplicate | Flag | PURGE
Safenet Developer Program Engineer Brain Teasers
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
daemon thread is a low priority thread that is terminated as soon the vm exits.
It is generally used to do all the house keeping work like gc thread is a daemon thread.
It can be set using
thread.setDaemon(true);
And then start the thread.
The main thread terminates it if it is finished.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Let me try to formalize it
- gamodg November 12, 20101. Divide even and odd in halfs
Since any pair of consecutive number consists of an even and an odd
number hence these two cannot be in the same half.
2 Place 1 and 8 on the separation line between even and odd.
Since 1 and 8 have affinity for one number only hence solution is
possible.
Comments and inputs are welcome