bugs in transitive reduction?

This commit is contained in:
Florian Stecker
2016-10-29 14:47:55 +02:00
parent 241065565d
commit 68bc766f92
4 changed files with 40 additions and 5 deletions

View File

@@ -12,6 +12,12 @@
char *alphabetize(int *word, int len, const char *alphabet, char *buffer)
{
if(len == 0) {
buffer[0] = '1';
buffer[1] = 0;
return buffer;
}
int i = 0;
for(i = 0; i < len; i++)
buffer[i] = alphabet[word[i]];