Hacker News new | ask | show | jobs
by burnt-resistor 15 days ago
"Group interviews" produce horrible, unfair dynamics.

Snapping with know-it-all arrogance is toxic and doesn't help anyone. You were correct because strcmp has to iterate both strings, just like strlen would.. and it's totally pointless.

    #include <string.h>
    /* C89 and handles NULL and overlapping strings */
    int strequal(const char *a, const char *b) {
            return (a == b || (a != NULL && b != NULL && strcmp(a, b) == 0));
    }
I think you dodged several bullets by not getting hired there because they sounded insufferable.