← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
You are given an integer array arr[] of size N (N is an even number). You have to split the array into two equal parts, arr1 and arr2 such that arr1 should contain distinct integers and arr2 should contain distinct integers. In other words, there should be no duplicates in arr1 or arr2. Return true if it is possible to split the array, and false otherwise.