<awangdev>274.H-Index_3.java
public int hIndex(int[] citations) {
        if (citations == null || citations.length == 0) {
        	return 0;
        }
 		int n = citations.length;
 		Arrays.sort(citations);
        
        int index = n;
        for (int i = n - 1; i >= 0; i--) {
            if (citations[i] >= n - i) {
                index = i;
                continue;
            }
            break;
        }
        
      	return n - index;
    }
public int sample_funcname ( int [ ] var_0 ) {
  if ( var_0 == null || var_0 . length == 0 ) {
    return 0 ;
  }
  int var_4 = var_0 . length ;
  Arrays . sort ( var_0 ) ;
  int var_7 = var_4 ;
  for ( int var_9 = var_4 - 1 ;
  var_9 >= 0 ;
  var_9 -- ) {
    if ( var_0 [ var_9 ] >= var_4 - var_9 ) {
      var_7 = var_9 ;
      continue ;
    }
    break ;
  }
  return var_4 - var_7 ;
}
