<awangdev>383. Ransom Note_1.java
public boolean canConstruct(String ransomNote, String magazine) {
        if (ransomNote == null) return true;
        if (magazine == null || magazine.length() < ransomNote.length()) return false;

        int[] count = new int[256];
        for (char c : magazine.toCharArray()) {
            count[c]++;
        }

        for (char c : ransomNote.toCharArray()) {
            count[c]--;
            if (count[c] < 0) {
                return false;
            }
        }

        return true;
    }
public boolean var_0 ( String var_2 , String var_3 ) {
  if ( var_2 == null ) return true ;
  if ( var_3 == null || var_3 . length ( ) < var_2 . length ( ) ) return false ;
  int [ ] var_7 = new int [ 256 ] ;
  for ( char var_9 : var_3 . toCharArray ( ) ) {
    var_7 [ var_9 ] ++ ;
  }
  for ( char var_9 : var_2 . toCharArray ( ) ) {
    var_7 [ var_9 ] -- ;
    if ( var_7 [ var_9 ] < 0 ) {
      return false ;
    }
  }
  return true ;
}
