Skip to content

Commit

Permalink
Make the instructions for binary more ambiguous
Browse files Browse the repository at this point in the history
Some languages treat invalid values as 0, others return errors, yet others raise exceptions.
We should allow for whatever error handling is idiomatic in the language.
  • Loading branch information
kytrinyx committed Jul 17, 2015
1 parent 62f4ae7 commit af4e4a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binary.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Implement binary to decimal conversion. Given a binary input
string, your program should produce a decimal output.
Implement binary to decimal conversion. Given a binary input
string, your program should produce a decimal output. The
program should handle invalid inputs.

## Note
- Implement the conversion yourself.
Do not use something else to perform the conversion for you.
- Treat invalid input as binary 0.

## About Binary (Base-2)
Decimal is a base-10 system.
Expand Down

0 comments on commit af4e4a0

Please sign in to comment.