Skip to content

Anya's binary_to_decimal.rb#51

Open
anyatokar wants to merge 1 commit intoAda-C14:masterfrom
anyatokar:master
Open

Anya's binary_to_decimal.rb#51
anyatokar wants to merge 1 commit intoAda-C14:masterfrom
anyatokar:master

Conversation

@anyatokar
Copy link

adding my code

Binary and Decimal

Congratulations! You're submitting your assignment.

Copy link
Collaborator

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, you hit the learning goal here.

@@ -5,5 +5,11 @@
# Calculate and return the decimal value for this binary number using
# the algorithm you devised in class.
def binary_to_decimal(binary_array)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method works, however can you get it to work without the Enumerable method reverse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants