Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Birthday Golf!

No description
by

Grant Crofton

on 1 July 2015

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Birthday Golf!

Birthday Golf!
Plan
Golf Rulez!
Example Problem - FizzBuzz
Pairs
18:45 - Intro & Rules

19:00 - Problem 1

19:30 - Problem 2

20:45 - Retro

21:00 - 19th Hole
File size in bytes
Goal
Details
Full Program

Size of source code file (e.g. Program.cs)

Warnings OK

Main output must match exactly (extra invisible whitespace OK)
FizzBuzz
Here's one I made earlier
Leeds Code Dojo
Timeline
Tips:
- Unix line endings
- ASCII
104 bytes
Problems
Problem 1:
Happy Birthday
Your Code
Console Application
Next
pls email me teh codez
Where to play
https://github.com/LeedsCodeDojo/BirthdayGolf
http://codegolf.stackexchange.com/

Anarchy Golf: http://golf.shinh.org/

Just Another Code Golf: http://jagc.org/
Thank You!
Problem 2:
Collatz Sequence Length
Console Application
Read in a number as a command line parameter or user input, and output the length of the Collatz Sequence starting with that number
Collatz Sequence
Defined as:

n → n/2 (n is even)
n → 3n + 1 (n is odd)

So the sequence starting with 13 is:

13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
Full transcript