comefrom: <awangdev>611. Valid Triangle Number_2.java
code: public int triangleNumber(int[] nums) {
          
          Arrays.sort(nums);
          int n = nums.length, count = 0;
          for (int i = 0; i <= n - 3; i++) { 
              if (nums[i] == 0) continue; 
              int k = i + 2; 
              for (int j = i + 1; j <= n - 2; j++) { 
                  while (k < n && nums[i] + nums[j] > nums[k]) k++; 
                  count += k - j - 1; 
              }
          }
          return count;
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    Arrays . sort ( var_0 ) ;
    int var_4 = var_0 . length , var_6 = 0 ;
    for ( int var_7 = 0 ;
    var_7 <= var_4 - 3 ;
    var_7 ++ ) {
      if ( var_0 [ var_7 ] == 0 ) continue ;
      int var_10 = var_7 + 2 ;
      for ( int var_12 = var_7 + 1 ;
      var_12 <= var_4 - 2 ;
      var_12 ++ ) {
        while ( var_10 < var_4 && var_0 [ var_7 ] + var_0 [ var_12 ] > var_0 [ var_10 ] ) var_10 ++ ;
        var_6 += var_10 - var_12 - 1 ;
      }
    }
    return var_6 ;
  }
  