Set
Code\n\nclass Solution {\n    fun findIntersectionValues(nums1: IntArray, nums2: IntArray): IntArray {\n        val set1 = nums1.toSet()\n        val set2 = num
# Code\n```\nclass Solution {\n    fun findIntersectionValues(nums1: IntArray, nums2: IntArray): IntArray {\n        val set1 = nums1.toSet()\n        val set2 = nums2.toSet()\n        return intArrayOf(\n            nums1.count { it in set2 },\n            nums2.count { it in set1 },\n        )\n    }\n}\n```
['Hash Table', 'Kotlin']