Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaves - Elizabeth Northrop #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

north108
Copy link

@north108 north108 commented Sep 2, 2019

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.

You kinda missed some of the point of this assignment. Take a look at my comments and let me know if you have any questions.

false
elsif array1 != nil && array2.nil?
false
elsif array1 == [] && array2 == []

Choose a reason for hiding this comment

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

Since you're comparing the lengths later on, do you need these if statements?

elsif array1 != [] && array2 == []
false
elsif array1.length == array2.length
if array1 == array2

Choose a reason for hiding this comment

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

You also need to traverse the arrays index-by-index and return false if they don't match. That's the point of this assignment.

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