Skip to content

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