Skip to content

Instantly share code, notes, and snippets.

@jswartwood
Created March 13, 2012 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jswartwood/2029257 to your computer and use it in GitHub Desktop.
Save jswartwood/2029257 to your computer and use it in GitHub Desktop.
AE Code Golf #1

Fibonacci Sequence

Classics series

Print the Fibonacci series (the first 10 values) separated by spaces. If you've ever taken a Computer Science class, you should be all over this one.

Rules

Solve the "Premise".

The smaller (bytes) the code, the better; if no one can shrink further, you win! It is good form to provide a (documented) non-minified version of your code, but it isn't required.

The programming language is dev's choice; however, languages should be compared both in isolation and overall (eg. your solution may be the best PHP solution, but Ruby may best it).

Add solutions in an appropriately suffixed solve file (eg. solve.js, solve.py).

Enjoy.

@samtsai
Copy link

samtsai commented Mar 13, 2012

Where do you want to store/share these solutions? SVN? Email?

@jswartwood
Copy link
Author

Just fork this gist if you want... others not interested in doing the github thing, can post via email, jsfiddle.net, their own hosting, or whateva.

@jswartwood
Copy link
Author

Can't fork yourself :(
Forked Sam to keep it clean here.
https://gist.github.com/2044436

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment