Skip to main content
deleted 17 characters in body
Source Link

#C++ (112104 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; )i=123;   ifwhile(u[i++])i return&& 0; !u[--i]); return 1;!i; } 

#C++ (112 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; )   if(u[i++]) return 0;  return 1; } 

#C++ (104 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } i=123; while(i && !u[--i]); return !i; } 
really?
Source Link

#C++ (114112 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i=0;i; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; ) if(u[i++]) return 0; return 1; } 

#C++ (114 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i=0; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; ) if(u[i++]) return 0; return 1; } 

#C++ (112 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; ) if(u[i++]) return 0; return 1; } 
wrong char count
Source Link

C++ (112 chars)

Based#C++ (114 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question. I might change it later.

int u[123], i=0; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; ) if(u[i++]) return 0; return 1; } 

C++ (112 chars)

Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question. I might change it later.

int u[123], i=0; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; ) if(u[i++]) return 0; return 1; } 

#C++ (114 non-ws chars)
Based on counting sort. Note: Assumes strings of the same length, which seems to be implied (though not stated) by the question.

int u[123], i=0; int a(char **c) { for(; c[0][i]; ) { u[c[0][i]]++; u[c[1][i++]]--; } for(i=0; i<123; ) if(u[i++]) return 0; return 1; } 
added 22 characters in body
Source Link
Loading
added 3 characters in body
Source Link
Loading
deleted 10 characters in body
Source Link
Loading
deleted 99 characters in body; added 76 characters in body; deleted 9 characters in body
Source Link
Loading
Rollback to Revision 1
Source Link
Loading
deleted 29 characters in body
Source Link
Loading
added 129 characters in body
Source Link
Loading
Source Link
Loading