Katkat
Technical Screen

Phone Screen on a High-Performance String Class

NVIDIASoftware Engineer · Technical Screen · Dec 2025

NV phone screen I was asked to implement a high-performance class to handle large strings, with functions like cmp, cat, substr, and so on. I created a simple class that uses a char array to store short strings. First I was asked to write the constructor: Q: For strncpy(buf, s, len), characters get copied one at a time — how can this be sped up? A: Use memcpy. Q: Is that the same as strncpy? A: ?…

Shared by a candidate · reported Dec 2025. Interview formats change; use it as a guide, not a script.