Skip to content

Commit

Permalink
resistor-color-duo: sync (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Jul 11, 2024
1 parent e891c0a commit 9e3310c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions exercises/practice/resistor-color-duo/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ The program will take color names as input and output a two digit number, even i

The band colors are encoded as follows:

- Black: 0
- Brown: 1
- Red: 2
- Orange: 3
- Yellow: 4
- Green: 5
- Blue: 6
- Violet: 7
- Grey: 8
- White: 9
- black: 0
- brown: 1
- red: 2
- orange: 3
- yellow: 4
- green: 5
- blue: 6
- violet: 7
- grey: 8
- white: 9

From the example above:
brown-green should return 15
brown-green should return 15, and
brown-green-violet should return 15 too, ignoring the third color.

0 comments on commit 9e3310c

Please sign in to comment.