public static boolean isSubsetSort(int[]A, int[]B) {
		if (B.length>A.length) return false;
		
		Arrays.sort(A);
		Arrays.sort(B);
		
		int m=A.length, n=B.length;
		int i=0,j=0;
		while (i<m&&j<n) {
			if (A[i]<=B[j]) {
				if (A[i++]==B[j]) 
					++j;
			} else 
				return false;
		}
		return j==n;
	}