comefrom: <awangdev>611. Valid Triangle Number_1.java
code: public int triangleNumber(int[] nums) {
          
          Arrays.sort(nums);
          int n = nums.length, count = 0;
          for (int k = n - 1; k >= 2; k--) { 
              for (int i = 0, j = k - 1; i < j;) { 
                  if (nums[i] + nums[j] > nums[k]) {
                      count += j - i;
                      j--; 
                  } else i++; 
              }
          }
          return count;
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    Arrays . sort ( var_0 ) ;
    int var_1 = var_0 . length , var_2 = 0 ;
    for ( int var_3 = var_1 - 1 ;
    var_3 >= 2 ;
    var_3 -- ) {
      for ( int var_4 = 0 , var_5 = var_3 - 1 ;
      var_4 < var_5 ;
      ) {
        if ( var_0 [ var_4 ] + var_0 [ var_5 ] > var_0 [ var_3 ] ) {
          var_2 += var_5 - var_4 ;
          var_5 -- ;
        }
        else var_4 ++ ;
      }
    }
    return var_2 ;
  }
  