Skip to main content

Food for mind

today let us look for a puzzle :
"3 criminals and 4 hats puzzle":
                                                 there are 3 criminals in the jail.the police man said that "i have 4 hats.two is of red color and 2 is of blue color".he maid the criminals to stand in straight line and placed a each hat on them but they did not know which color hat is placed on their hat.he placed such that "A" can see "B" and "c" ."b" can see the "c".and "c" Can not see any body.the police man said if you answer which cap is remaining i'll leave all of you"so..help the criminals now....answer

yes "b" will answer.if red hat on "c" and red hat on "B",  "A" could have answer immediately like blue hat is on my head and blue is remaining.hence "A" kept quite without answering "B" think that "c" has red color hat..hence "a" not answered may be blue hat is on my head and answered as that "b" have blue hat...

Comments

Popular posts from this blog

Who invented the internet?

As you might expect for a technology so expansive and everchanging, it is impossible to credit the  invention of the Internet to a single person.Long before the technology existed to actually build the Internet, many scientists had already anticipated the existence of worldwide networks of information.  Nikola Tesla toyed with the idea of a “world wireless system” in the early 1900s, and visionary thinkers like Paul Otlet and Vannevar Bush conceived of mechanized, searchable storage systems of books andmedia in the 1930s and 1940s.                                                                             Still, the first practical schematics for the Internet would notarrive until the early 1960s, when MIT’s J.C.R. Licklider popularized the idea of an“Intergalactic Network” of compute...

let's learn java today..

java(it’s hot!!) as you know in the market java is very popular.why java is hot now a days..??i’ll explain but before that will review the history of java so that we can understand the importance of this “hot cake”. history of java: java came in to picture in 1990s when c++ was very popular all over the world.the only disadvantage with c++ is c++ is platform dependent.so to solve this problem java came into picture.so what is platform independent and what is platform dependent. platform dependent and platform independent?? during the execution of any program the “cpu” or “micro processor ” will expect that the language compilation and the election platform must be same.so these kind of programing language is called platform dependent language. ex: if program is written in windows platform that object file must be executed only in windows platform.ex:c,c++ so what is platform independence ..yeah exactly opposite to this.during the execution of the program microprocess...