I failed to run the tests for this exercice, the error is a segmentation fault:
make: *** [makefile:22: test] Segmentation fault (core dumped)
The problem is that my solution is working just fine in the programmiz sandbox:
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
bool is_isogram(const char phrase[]) {
int length = strlen(phrase);
for (int i = 0; i < length - 1; i++) {
for (int j = i + 1; j < length; j++) {
if (phrase[i] == phrase[j]) {return false;}
}
}
return true;
}
int main() {
bool boolean = is_isogram("subdermatoglyphic");
const char* s = (boolean == true) ? "true" : "false";
printf(s);
return 0;
}
Can someone confirm that the exercice is still working on his side ?