is there same number in both lists?


  • 0
    N

    is there same number in both lists?
    For example:

    nums1 = [1, 2, 3]
    nums2 = [2, 3, 4]


  • 0
    R

    don't know if you still have this question but the answer is not necessarily. There will be some cases where the lists are the same length but your program should be able to solve cases with lists of different lengths.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.