Exercise 1: Check the Array Equality

Write code to verify whether two arrays are equal.

Problem statement

Write a Ruby method to check whether two arrays are equal. To do this, you are first required to perform the following two tasks:

  • Task 1: Use the following widget to generate the list of methods supported for an array, in sorted order.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy