Question: Given 2 arrays of ints, a and b , return True if they have the same first element or they have the same last element.
Given arrays of ints, a and b return True if they have the same first element or they have the same last element. Both arrays will be length or more.
commonend True
commonend False
commonend True
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
