jQuery in Action, 3rd edition
The moose likes Programming Diversions and the fly likes Flowery Names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Flowery Names" Watch "Flowery Names" New topic

Flowery Names

HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Three young women, Rose, Daisy and Iris gather at a function.
The woman wearing the rose corsage said, "I just noticed that the flowers in our corsages match our names, but none of us are wearing a flower that matches our own name." "Wow!" said Iris ,"You're right!"
Given these clues, can you identify who is who in the description above?
[ January 05, 2004: Message edited by: HS Thomas ]
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Ms. Rose => iris
Ms. Daisy => rose
Ms. Iris => daisy

Quaerendo Invenietis
ChanSan Mehbubani
Ranch Hand

Joined: Dec 30, 2003
Posts: 108
Whether the puzzle is simple or difficult,one should always provide the answer with explanation.

I am a Papad
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Mani, not quite the answer I've seen. As Tanga said supplying the reasoning will enable us to double check all round.
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11817

the first woman to speak is not Rose, because she is wearing a rose. So, she is either Daisy or Iris. But, Iris answers with "wow, you're right". so, the first woman to speak is not Iris.
So, she must be Daisy. Daisy is wearing the rose.
that leaves Rose and Iris, who are wearing a daisy and an iris. Iris is not wearing an iris, so she must be wearing the daisy. that leaves Rose to wear the iris.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Sorry I missed this.
Sorry Mani I misread your answer. :0
[ January 12, 2004: Message edited by: HS Thomas ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Flowery Names
It's not a secret anymore!