<awangdev>274.H-Index_2.java
public int hIndex(int[] citations) {
        if (citations == null || citations.length == 0) {
        	return 0;
        }
 		int n = citations.length;
 		Arrays.sort(citations);
        int i = 0;
 		while (i < n && citations[i] < n - i) {
 			i++;
 		}
      	return n - i;
    }
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 = 0 ;
  while ( var_7 < var_4 && var_0 [ var_7 ] < var_4 - var_7 ) {
    var_7 ++ ;
  }
  return var_4 - var_7 ;
}
