Why this answer is not accepted ?

I ma stuck with this. When Iexecute this script In the browser answer is OK. However not working in Leetcode. Any idea ?

Thanks for your help

var merge = function(nums1, m, nums2, n) {
    nums1 = nums1.filter(x=>x>0);
    nums2 = nums2.filter(x=>x>0);
    return nums1.concat(nums2).sort((a,b)=>a-b);
};
Comments (0)