☑️ Splitting the Array. ☑️
Code
# Code
```dart []
class Solution {
  bool isPossibleToSplit(List<int> nums) {
    nums.sort((a, b) => a.compareTo(b));
    List<int> list1 = [];
    List<int> list2 = [];

    for(int i = 0; i < nums.length; i++){
        if(!list1.contains(nums[i]) && list1.length <= list2.length){
            list1.add(nums[i]);
        }else{
            if(!list2.contains(nums[i])){
                list2.add(nums[i]);
            }else{
                return false;
            }
        }
    }

    if(list1.length == list2.length){
        return true;
    }

    print(list1);
    print(list2);

    return false;
  }
}
```
['Array', 'Hash Table', 'Counting', 'Dart']