Skip to content

Commit

Permalink
Fixed the readme and added an example
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Landau committed Jan 21, 2017
1 parent 6e0c5a3 commit 5ef3211
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions challenge_15/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ Taking Candy From A Baby
======
Idea
------
Remember cracking open a pinata on someones birthday? When all your friends would swarm the candy that fell out and you would have to fight your way through it? I do. Lotta friendships were lost at those birthday parties... Nevertheless, your job today is to simulate kids stealing candy from each other. The way this assignment goes is as follows: There are three kids, Tom, Bob and Joe. They each have varying (or the same, it's not really important) amounts of candy. Tom becomes gready as well and steels from ... himself?
Remember cracking open a pinata on someones birthday? When all your friends would swarm the candy that fell out and you would have to fight your way through it? I do. Lotta friendships were lost at those birthday parties... Nevertheless, your job today is to simulate kids stealing candy from each other. The way this assignment goes is as follows: There are three kids, Tom, Bob and Joe. They each have varying (or the same, it's not really important) amounts of candy. Tom becomes gready as well and steels from himself because he isn't very smart.

Testing
------
Crate a Circularly Linked List and append various values to it. For simplicity sake, these values should be ints.

Call the function that will initialize the steeling.

Print the remaining kid.
Print the remaining kid.

Example
------
Given an array: a b c d your function should return c.

0 comments on commit 5ef3211

Please sign in to comment.