Easter Eggs

Back to Problem Solutions forum

Vladimir_V     2015-07-24 09:19:32

Hello to every one Couple of questions about Easter Eggs problem:

  1. Can we choose more than once the same egg(For exaple: 1 6 8 4 1 6 ) so egg # 1 and 6 have been choosed more than once. ???
  2. We must apply here recursive function ?
  3. And last one, What is main criteria two choose next egg ? ( The egg which being touched move from 1 two 0 at leat two eggs? )
OldProgrammer     2015-07-24 09:40:37

You've solved a large number of problems so you probably don't need a lot of help...

You should be able to work out on paper whether it's worth including an egg multiple times. Try to understand how the touching operation works.

Sometimes a simple solution is good enough. Once you've solved you may find that somebody has come up with a better solution or maybe your solution was the best after all. You can always try to code a better solution afterwards as part of learning.

Vladimir_V     2015-07-24 10:54:51

Hi, Again :) Iven if your messagge is not close to an answer :) Anyway thanks a lot for your time

Rodion (admin)     2015-07-24 11:59:52
User avatar

Vladimir, Hi!

I understand OldProgrammer - he tries to hint that the idea is simple enough so that really working a bit with a set of coins or pencil+paper you will surely find it yourself. I believe every time you find idea yourself you are somewhat glad and so OldProgrammer does not want to spoil you this joy :)

I'll dare to answer the 2-nd question. We need not recursion here (though technically you can convert the solution to recursive).

As about the 3-rd I'm not sure I understand it right, but after answering yourself the 1-rd you probably will see the answer for this at once.

Well, I have one more hint for you in the form of another question. I encode it with rot-13 so just decode it back it if you want to see it:

Vf gur beqre va juvpu rttf ner gbhpurq vzcbegnag?
Vladimir_V     2015-07-24 12:18:49

Dear Admin :) Good questions from you :) Even if am still looking for solution for this problem i intuitively answer "YES". Well am stil in the midle of Jungle disperetaly looking for the way out :). Anyway, guys thanks for funny answers I am glad to be here :)

Please login and solve 5 problems to be able to post at forum