Skip to content

3 5 月, 2023

LeetCode: 2215-Find the Difference of Two Arrays 解題紀錄

Last Updated on 2023-05-03 by Clay

題目

Given two 0-indexed integer arrays nums1 and nums2, return a list answer of size 2 where:

  • answer[0] is a list of all distinct integers in nums1 which are not present in nums2.
  • answer[1] is a list of all distinct integers in nums2 which are not present in nums1.
Read More »LeetCode: 2215-Find the Difference of Two Arrays 解題紀錄
Exit mobile version