WEEKEND PROGRAMMING CHALLENGE ISSUE #7


Image

Problem:

Cat can jump one or two steps on stairs, make code which calculate how many different ways the cat can climb from bottom to top of N-size stairs.

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday May 5th .

On Monday we will upload the solutions on GitHub and review https://github.com/OLIMEX/WPC .

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

Good Luck and Have fun!

15 Comments (+add yours?)

  1. nippius
    May 03, 2013 @ 18:08:54

    If the cat is in the last step of the stairs can it jump “two steps”? Is that a valid move?

    Reply

  2. MADze
    May 03, 2013 @ 22:12:31

    Which cat is it?

    Reply

  3. Alexios
    May 04, 2013 @ 15:36:32

    Does ‘count’ mean literally a count of possible solutions, or a list of all solutions?

    Reply

  4. Ian k Rolfe
    May 04, 2013 @ 22:21:55

    My LOLpython entry I just posted lists the possible combinations and outputs the total – got both camps covered!!

    Reply

    • Dylan
      May 05, 2013 @ 01:24:06

      BUT LAIK LOLpython IZ 4 FIBBERs!

      I submitted a solution early, but my first attempt at providing the combinations as well failed. I’ll give it a go on Monday, what with it still being Easter.

      Reply

  5. Iain Cunningham (@IainIsm)
    May 05, 2013 @ 19:50:33

    I’m pretty sure that there’s a way to calculate the total number of solutions without working out what they all are…

    Reply

  6. sinan
    May 07, 2013 @ 15:06:32

    Can you tell us when the solutions will be uploaded? 🙂

    Reply

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: