Skip to content

Commit

Permalink
Remove Ruby examples from secret-handshake README. (#334)
Browse files Browse the repository at this point in the history
* Remove Ruby examples from secret-handshake README.

Left both examples in as they were originally. It is worth noting
that the first example passes an integer and the second a string
to demonstrate that the exercise expects both types to be handled.
  • Loading branch information
allyjweir authored and petertseng committed Aug 14, 2016
1 parent 277d143 commit f7aa43f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions secret-handshake.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ binary decide to come up with a secret "handshake".
10000 = Reverse the order of the operations in the secret handshake.
```

```
handshake = SecretHandshake.new 9
handshake.commands # => ["wink","jump"]
Here's a couple of examples:

Given the input 9, the function would return the array
["wink", "jump"]

Given the input "11001", the function would return the array
["jump", "wink"]

handshake = SecretHandshake.new "11001"
handshake.commands # => ["jump","wink"]
```

The program should consider strings specifying an invalid binary as the
value 0.

0 comments on commit f7aa43f

Please sign in to comment.