Question: Write a function that takes two lists, and returns True if the first list is a reordering of the same elements as the second list,

Write a function that takes two lists, and returns True if the first list is a reordering of the same elements as the second list, and False otherwise. Note: You can use any built-in functions and operators that you want for this question. Example output: >>> isReordering([4,1,3,2],[1,2,3,4]) True >>> isReordering([5,8,3,21],[5,21,8]) False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!