<awangdev>893. Groups of Special-Equivalent Strings_1.java
public int numSpecialEquivGroups(String[] A) {
        if (A == null || A.length == 0) {
            return 0;
        }
        HashSet<String> set = new HashSet<>();
        
        for (String s : A) {
            int[] odd = new int[256];
            int[] even = new int[256];
            for (int i = 0; i < s.length(); i++) {
                int c = s.charAt(i);
                if (i % 2 == 0) {
                    even[c]++;
                } else {
                    odd[c]++;
                }
            }
            String signature = Arrays.toString(odd) + Arrays.toString(even);
            set.add(signature);
        }

        return set.size();
    }
public int sample_funcname ( String [ ] var_1 ) {
  if ( var_1 == null || var_1 . length == 0 ) {
    return 0 ;
  }
  HashSet < String > var_6 = new HashSet < > ( ) ;
  for ( String var_7 : var_1 ) {
    int [ ] var_9 = new int [ 256 ] ;
    int [ ] var_10 = new int [ 256 ] ;
    for ( int var_11 = 0 ;
    var_11 < var_7 . length ( ) ;
    var_11 ++ ) {
      int var_13 = var_7 . charAt ( var_11 ) ;
      if ( var_11 % 2 == 0 ) {
        var_10 [ var_13 ] ++ ;
      }
      else {
        var_9 [ var_13 ] ++ ;
      }
    }
    String var_17 = Arrays . toString ( var_9 ) + Arrays . toString ( var_10 ) ;
    var_6 . add ( var_17 ) ;
  }
  return var_6 . size ( ) ;
}
