3046. Split the Array
You are given an integer array nums of even length. You have to split the array into two parts nums1 and nums2 such that: - nums1.length == nums2.length == nums.length / 2. - nums1 should contain distinct elements. - nums2 should also contain distinct elements. Return true if it is possible to split the array, and false otherwise. Example 1: Input: nums = [1,1,2,2,3,4] Output: true Explana
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start