Skip to content

Comments

Leaves - Natalie Tapias#23

Open
NatalieTapias wants to merge 5 commits intoAda-C12:masterfrom
NatalieTapias:master
Open

Leaves - Natalie Tapias#23
NatalieTapias wants to merge 5 commits intoAda-C12:masterfrom
NatalieTapias:master

Conversation

@NatalieTapias
Copy link

No description provided.

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.

Nice work! You hit all the learning goals here.

flag = 0
first_array.each.each_with_index do |value, index|
if value != second_array[index]
flag += 1

Choose a reason for hiding this comment

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

Instead of incrementing flag, why not just return false.

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