<gouthampradhan>hashing_LargestUniqueNumber_1.java
public int largestUniqueNumber(int[] A) {
    Map<Integer, Integer> map = new HashMap<>();
    for (int i : A) {
      map.putIfAbsent(i, 0);
      int v = map.get(i) + 1;
      map.put(i, v);
    }
    int max = -1;
    for (int k : map.keySet()) {
      if (map.get(k) == 1) {
        max = Math.max(max, k);
      }
    }
    return max;
  }
public int sample_funcname ( int [ ] var_0 ) {
  Map < Integer , Integer > var_4 = new HashMap < > ( ) ;
  for ( int var_5 : var_0 ) {
    var_4 . putIfAbsent ( var_5 , 0 ) ;
    int var_10 = var_4 . get ( var_5 ) + 1 ;
    var_4 . put ( var_5 , var_10 ) ;
  }
  int max = - 1 ;
  for ( int var_14 : var_4 . keySet ( ) ) {
    if ( var_4 . get ( var_14 ) == 1 ) {
      max = Math . max ( max , var_14 ) ;
    }
  }
  return max ;
}
