4 ms·
I think it's a nice-to-have and not a need-to-have. This is a super basic example, but I had a phone-screen question that was "reverse the order of the words i
by nyx_ 8y ago
I think it's a nice-to-have and not a need-to-have.
This is a super basic example, but I had a phone-screen question that was "reverse the order of the words in this C array in-place without allocating more memory." I found out with clarifying questions that I could use a temporary variable, but midway through I remembered how the XOR swap worked, and I think that scored me some points with the interviewer.