title: I am doing this challenge at Leet Code where you should sort array and delete all zeros and it always keeps one zero?
body: <pre><code>nums1 = [1,2,3,0,0,0]
  nums2 = [2,5,6]
  var merge = function(nums1,nums2) {
      let deletezeros = function(numi){
          for(let i = 0; i &lt; numi.length; i++){
              if(numi[i] == 0){
                  numi.splice(i, 1)
              }
          }
      }
      deletezeros(nums1)
      deletezeros(nums2)
      let result = nums1.concat(nums2)
      result.sort()
      return result
  };
  
  let a = merge(nums1,nums2)
  
  console.log(a)
  </code></pre>
  <p>result is</p>
  <pre><code>[
    0, 1, 2, 2,
    3, 5, 6
  ]
  </code></pre>