Hmm....
Actually, I have passed the online judge.
However, I didn't modify the above code to pass.
I used another method and rewrote entire code.
The problem is that I can't figure out where the mistakes are.
I hope some one can help me and point it out.
Search found 2 matches
- Thu Feb 12, 2015 10:01 am
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 58680
- Wed Feb 11, 2015 4:23 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 58680
Re: 195 - Anagram
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 100
int compare(const void *a, const void *b)
{
char x = *(char *)a,
y = *(char *)b;
if(tolower(x) == tolower(y))
return x > y;
return tolower(x) > tolower(y);
}
int strremove(char *string, int length_of_string, int ...