Skip to content

Leaves - Julia K#41

Open
Kalakalot wants to merge 1 commit intoAda-C12:masterfrom
Kalakalot:master
Open

Leaves - Julia K#41
Kalakalot wants to merge 1 commit intoAda-C12:masterfrom
Kalakalot:master

Conversation

@Kalakalot
Copy link

@Kalakalot Kalakalot commented Sep 2, 2019

Binary and Decimal

Congratulations! You're submitting your assignment.

@Kalakalot Kalakalot changed the title All four tests are passing. Leaves - Julia K Sep 2, 2019
Copy link

@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.

This works, but it's WAAAAY too hardcoded. Think of ways to automate this. You could use a loop here to great effect.

end

# assign decimal values to binary digits and put them in an array

Choose a reason for hiding this comment

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

This works, but you've hardcoded the powers of 2 here. You should look for a way to calculate these, maybe using the length of the array.

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