KIKO LIVE Hiring | Online Assessment Question | On-Campus (2025)

Question · Posted Jun 2026

Find the Difference of Two Arrays and Return XOR Problem Statement You are given two integer arrays nums1 and nums2. Find the unique elements that appear only in one array: Elements present in nums1 but not in nums2. Elements present in nums2 but not in nums1. Compute: answer[0] = XOR of all unique elements present only in nums1. answer[1] = XOR of all unique elements present only in nums2. Return the array containing these two XOR values. Example Input: nums1 ...

The full answer & interview discussion are available to premium members.

Log in Create a free account