HAPPILO Hiring Challenge | Online Assessment Interview Question | Off-Campus (2023)
Question · Posted Jun 2026
Q1: Find the Difference Between Two Arrays Problem Statement Given two integer arrays nums1 and nums2, return a list containing: Distinct integers present in nums1 but not in nums2. Distinct integers present in nums2 but not in nums1. Example Input nums1 = [1,2,3] nums2 = [2,4,6] Output [[1,3],[4,6]] Constraints 1 ≤ nums1.length, nums2.length ≤ 1000
The full answer & interview discussion are available to premium members.
Log in Create a free account